User Guide
348 Chapter 16: Working with Models and Model Resources
bounding
Sphere
Get A list containing a vector and a floating-point
value. The vector represents the world
position and the value represents the radius
of a bounding sphere surrounding the model
and all its children.
[vector
(0,0,0), 0.0]
world
Position
Get and set Position of the model in world coordinates.
Shortcut for the method
node.getWorldTransform
().position
.
Vector object.
visibility Get and set The way in which the sides of the model’s
resource are drawn. The choices are as
follows:
#none, in which no polygons are drawn and
the model is invisible.
#front, in which only polygons on the outer
surface of the model are drawn, so that, if the
camera were inside the model, the model
wouldn’t be seen. Also known as “back face
culling,” this option optimizes performance.
#back, in which only polygons on the inside of
the object are drawn, so that if the camera
were outside the model, the model wouldn’t
be seen.
#both, in which all polygons are drawn and
the model is visible regardless of orientation.
This may solve drawing problems, but it can
also affect performance because twice as
many polygons must be drawn.
The default is
#front.
#none:
#front
#back
#both
debug
Get and set Value indicating whether debug information
is drawn for this model. If the value is
TRUE
(1)
, lines from the x, y, and z axes are drawn
sprouting up from the model to indicate its
orientation, and a bounding sphere is drawn
around the model.
TRUE (1) or
FALSE (0). The
default is
FALSE
(0)
.
bounding
Sphere
Get A list containing a vector and a floating-point
value. The vector represents the position of
the model in world space, and the floating-
point value represents the radius of the
bounding sphere that contains the model
and its children.
bounding
Sphere
pointAt
Orientation
Get and set A list of two orthogonal vectors,
[
objectRelativeDirecton,
objectRelativeUp
], that control how the
model’s
pointAt() method works.
pointAt
Orientation
Property Access Description Value