3D Lingo Dictionary > E-K > gravity |  |

gravity

Syntax

    member(whichCastmember).modelResource(whichModelResource).gravity

Description

3D particle model resource property; when used with a model resource whose type is `#particle`, allows you to get or set the `gravity` property of the resource as a vector.

This property defines the gravity force applied to all particles in each simulation step.

The default value for this property is `vector(0,0,0)`.

Example

In this example, ThermoSystem is a model resource of the type #particle. This statement sets the gravity property of ThermoSystem to the vector (0, -.1, 0), which pulls the particles of thermoSystem gently down the y axis.

    member("Fires").modelResource("ThermoSystem").gravity = vector(0, -.1, 0)

See also

`drag`, `wind`