956
Chapter 14: Properties
resolve
Usage
member(
whichCastmember
).model(
whichModel
).collision.resolve
Description
3D collision property; allows you to get or set whether collisions are resolved when two models
collide. If this property is set to
TRUE
for both models involved in a collision, both models come
to a stop at the point of collision. If only one of the models has the
resolve
property set to
TRUE
,
that model comes to a stop, and the model with the property not set, or set to
FALSE
, continues to
move. The default value for this property is
TRUE.
Example
The following statement sets the
resolve
property of the collision modifier applied to the model
named Box to
TRUE
. When the model named Box collides with another model that has the
#collision
modifier attached, it will stop moving.
member("3d world").model("Box").collision.resolve = TRUE
See also
collisionData
,
collisionNormal
,
modelA
,
modelB
,
pointOfContact
resource
Usage
member(
whichCastmember
).model(
whichModel
).resource
Description
3D property; allows you to get or set the resource property that defines the geometry of the
referenced model resource. This property also allows access to the referenced model’s resource
object and its associated properties.
Example
The following statement sets the model resource used by the model named NewBox. It will now
have the same geometry as the model named box.
member("3d World").model("NewBox").resource = member\
("3d World").model("box").resource
This statement displays the resolution property of the model resource used by the model named
Cylinder.
put member("3d World").model("Cylinger").resource.resolution
-- 20
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...