3D Lingo Dictionary > C-D > collision (modifier)

 

collision (modifier)

Syntax

member(whichCastmember).model(whichModel).collision.collisionModifierProperty

Description

3D modifier; manages the detection and resolution of collisions. Adding the collision modifier to a model by using the addModifier command allows access to the following collision modifier properties:

enabled (collision) indicates whether collisions with the model are detected.

resolve indicates whether collisions with the model are resolved.

immovable indicates whether a model can be moved from frame to frame.

mode (collision) indicates the geometry used for collision detection.

Note: For more detailed information about these properties, see the individual property entries.

The collision modifier generates the following events. For more information about using collision events, see the entry for registerForEvent().

A #collideAny event is generated when a collision occurs between models to which the collision modifier has been attached.

A #collideWith event is generated when a collision occurs with a specific model to which the collision modifier has been attached.

The collisionData object is sent as an argument with the #collideAny and #collideWith events. See the collisionData entry for details of its properties.

See also

addModifier, removeModifier, modifiers