MACROMEDIA DIRECTOR MX 2004-USING DIRECTOR Use Manual page 395

Hide thumbs Also See for DIRECTOR MX 2004-USING DIRECTOR:
Table of Contents

Advertisement

These properties are included in the
Property
modelA
modelB
pointOf
Contact
collision
Normal
Collision methods
Collision methods let you override certain aspects of the default behavior set for models during
collisions. If neither of the models involved in the collision has
manually resolve the collision using
model B.
Method
collisionData.resolveA
(trueOrFalse)
collisionData.resolveB
(trueOrFalse)
Selecting models
Selecting models (picking) refers to clicking on models in a 3D cast member. Because models are
objects that exist within a 3D cast member and a 3D sprite, they are not normally sensitive to
mouse clicks. Normally it is only the entire sprite that is sensitive to mouse clicks.
You can use scripts to determine specifically which models have been clicked when a user clicks
within a 3D sprite. In practice, this allows for changing model positions to make it appear that an
action such as a button being pushed or a door being opened has taken place, or to allow the user
to select or drag an object. Picking can be accomplished by using cast member or camera
methods.
collisionData
Access
Get
Get
Get
Get
resolveA(true)
Description
Resolves collision for model A.
Resolves collision for model B. If the argument is
, the collision won't be resolved. This overrides the
(0)
collision.resolve
object passed to the handler:
Description
One model in the collision.
If the script includes registration for collision with a
particular model,
modelA
The second model in the collision.
Vector describing world-space location of collision.
Available only if the collision has been resolved. Occurs
if the model's collision modifier
or either the
(1)
collisionData resolveA()
collisionData resolveB()
Vector indicating direction of collision. Available only if
the collision has been resolved. Occurs if the model's
collision modifier
resolve
the
collisionData resolveA()
method is called.
resolveB()
resolve
for model A or
property, if any, set for model B.
is that model.
property is
resolve
or
method is called.
property is
TRUE (1)
or
collisionData
set to
, you can
TRUE
for
resolveB(true)
Returns
Nothing
Nothing
FALSE
Collisions
TRUE
or either
395

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents