3D Lingo Dictionary > C-D > direction |  |

direction

Syntax

    member(whichCastmember).modelResource(whichModelResource).emitter.direction

Description

3D emitter property; a vector that indicates the direction in which the particles of a particle system are emitted. A particle system is a model resource whose type is `#particle`.

The primary direction of particle emission is the vector set by the emitter's `direction` property. However, the direction of emission of a given particle will deviate from that vector by a random angle between 0 and the value of the emitter's `angle` property.

Setting `direction` to `vector(0,0,0)` causes the particles to be emitted in all directions.

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

Example

In this example, ThermoSystem is a model resource whose type is `#particle`. This statement sets the `direction` property of ThermoSystem's emitter to `vector(1, 0, 0)`, which causes the particles of ThermoSystem to be emitted into a conical region whose axis is the X axis of the 3D world.

    member("Fires").modelResource("ThermoSystem").emitter.direction = vector(1,0,0)

See also

`emitter`, `angle`