Changes

Jump to navigation Jump to search

Documentation/Engine/Units/glass pane data

1,260 bytes added, 17:13, 30 May 2017
First draft.
The '''glass_pane_data''' unit class is used to define glass 'panes' which are used to simulate raindrop accumulation, movement, and clearing in the interior view. A separate unit is used for each pane. They are defined as nameless units, belonging to [[Documentation/Engine/Units/accessory_interior_data|accessory_interior_data]] via the ''glass_panes'' attribute and are typically included via '''/def/vehicle/truck/<make.model>/interior/glass.sui'''.

== Attributes ==
{|class="wikitable"
!Name
![[Documentation/Engine/Units#Attribute_types|Type]]
!Default Value
!Description
|-
|locator
|string
|
|The name of the locator in the interior model that corresponds to this glass pane. The locator's Y axis points 'out' from the glass surface, and its XZ plane forms the surface.
|-
|size
|float2
|
|The size (width, height) of the glass pane in meters.
|-
|drop_size_minimum
|float
|
|Minimum raindrop size in meters.
|-
|drop_size_maximum
|float
|
|Maximum raindrop size in meters.
|-
|edge_angle
|float
|0
|Angle in degrees at the side edges of the glass pane (for curved glass, etc).
|-
|wipers
|array&lt;owner_ptr&gt;
|
|Each member points to a [[Documentation/Engine/Units/wiper_data|wiper_data]] unit defining a wiper that will affect this glass pane.
|}
309
edits

Navigation menu