User Guide

collision (modifier) 693
Example
These statements try to set closedCaptions to TRUE, and display an alert if they cannot
be enabled:
-- Lingo syntax
member(3).closedCaptions = TRUE
if (member(3).closedCaptions = FALSE) then
_player.alert("Closed captions cannot be enabled.")
end if
// JavaScript syntax
member(3).closedCaptions = true
if (member(3).closedCaptions == false) {
_player.alert("Closed captions cannot be enabled.");
}
Currently unsupported on Macintosh.
See also
DVD
collision (modifier)
Usage
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
registerForEvent() entry.
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