3D Lingo Dictionary > O-S > region |  |

region

Syntax

    member(whichCastmember).modelResource(whichModelResource).emitter.region
    modelResourceObjectReference.emitter.region

Description

3D emitter property; when used with a model resource whose type is `#particle`, allows you to both get and set the `region` property of the resource's particle emitter.

The region property defines the location from which particles are emitted. If its value is a single vector, then that vector is used to define a point in the 3D world from which particles will be emitted.

If its value is a list of two vectors, then those vectors are used to define the end points of a line segment from which particles will be emitted.

If its value is a list of four vectors, then those vectors are used to define the vertices of a quadrilateral from which the particles will be emitted.

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 specifies the four corners of a rectangle from which the particles of ThermoSystem originate.

    member("Fires").modelResource("ThermoSystem").emitter.region = [vector(20,90,100), vector(30,90,100), vector(30,100,100), vector(20,100,100)]

See also

`emitter`