3.9. Gravity

<gravity> ‐ The gravity vector

3.9.1. Attributes

NameTypeDefaults
xFLOAT0.0
yFLOAT0.0
zFLOAT0.0

3.9.2. Description

This element defines the value of the gravity vector that is used for rendering the cinematics of objects with physical properties.

The float values of the x, y, and z attributes define the gravity vector. The standard scene orientation expects a gravity vector with a negative y-coordinate and null x- and z-coordinates.

3.9.3. Expected content

None.

3.9.4. Example

The example below defines a gravity vector whose coordinates are (0.0, -1.0, 0.0):

<gravity x="0.0" y="-1.0" z="0.0"/>