Decay¶
XML Elements¶
The following elements can be used within this component:
Decay¶
Active¶
If false, the entity will not do any decaying
Type: boolean (true or false)
Path: Decay/Active
SinkingAnim¶
If true, the entity will decay in a ship-like manner
Type: boolean (true or false)
Path: Decay/SinkingAnim
SinkProb¶
The entity decays according to the supplied probability each frame.
Type: non-negative decimal
Path: Decay/SinkProb
DelayTime¶
Time to wait before starting to sink, in seconds
Type: non-negative decimal
Path: Decay/DelayTime
SinkRate¶
Initial rate of sinking, in meters per second
Type: non-negative decimal
Path: Decay/SinkRate
SinkAccel¶
Acceleration rate of sinking, in meters per second per second
Type: non-negative decimal
Path: Decay/SinkAccel
RELAX NG Grammar¶
<define name="component.Decay">
<element name="Decay">
<interleave>
<element name="Active">
<data type="boolean"/>
</element>
<element name="SinkingAnim">
<data type="boolean"/>
</element>
<element name="SinkProb">
<ref name="nonNegativeDecimal"/>
</element>
<element name="DelayTime">
<ref name="nonNegativeDecimal"/>
</element>
<element name="SinkRate">
<ref name="nonNegativeDecimal"/>
</element>
<element name="SinkAccel">
<ref name="nonNegativeDecimal"/>
</element>
</interleave>
</element>
</define>