mode (collision)
Usage
member(whichCastmember).model(whichModel).collision.mode
Description
3D collision modifier property; indicates the geometry to be used in the collision detection
algorithm. Using simpler geometry such as the bounding sphere leads to better performance. The
possible values for this property are:
•
uses the actual mesh geometry of the model's resource. This gives one-triangle precision
#mesh
and is usually slower than
•
uses the bounding box of the model. This is useful for objects that can fit more tightly in
#box
a box than in a sphere, such as a wall.
•
is the fastest mode, because it uses the bounding sphere of the model. This is the
#sphere
default value for this property.
Example
These statements add the collision modifier to the model named
property to
#mesh
member("3d").model("yourModel").addModifier(#collision)
member("3d").model("yourModel").collision.mode = #mesh
model
Usage
member(whichCastmember).model(whichModel)
member(whichCastmember).model[index]
member(whichCastmember).model.count
member(whichCastmember).model(whichModel).propertyName
member(whichCastmember).model[index].propertyName
Description
3D command; returns the model found within the referenced cast member that has the name
specified by
whichModel
for the specified parameter, the command returns
the number of models found within the referenced cast member. This command also allows
access to the specified model's properties.
Model name comparisons are not case-sensitive. The index position of a particular model may
change when objects at lower index positions are deleted.
If no model is found that uses the specified name or no model is found at the specified index
position then this command returns void.
Example
This statement stores a reference to the model named Player Avatar in the variable thismodel
thismodel = member("3DWorld").model("Player Avatar")
or
#box
#sphere
:
, or is found at the index position specified by
.
your Model
. As
void
model.count
and set the mode
. If no model exists
index
, the command returns
:
model
861
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers