User Guide

366 Chapter 16: Working with Models and Model Resources
Modifiers
Modifiers control how a model is rendered or how it animates. They are attached to a model with
the
addModifier() method. Once a modifier has been attached, its properties can be
manipulated with script. The tables that follow detail the properties of the modifiers included
with Director.
Level of detail (LOD) modifier properties
The level of detail (LOD) modifier provides per-model control over the number of polygons used
to render a model, by allowing you to reduce the number to a lower value, based on the model’s
distance from the camera. This modifier is attached to all imported models.
The LOD modifier can work in one of two ways: automatically using the distance from the
camera or manually. To use manual mode, disable auto mode and then set the properties yourself.
pointAt(world
Position, worldUp)
Rotates the model until it points at the world-relative
position worldPosition. The optional
worldUp argument
gives the general position of the model’s Up axis. The
exact position can’t be determined using this method.
Both the object-relative axes are defined by the
pointAtOrientation property. Default values are an
object-relative forward direction of vector (
0, 0, -1) and
an object-relative up direction of vector (
0, 1, 0).
Nothing
getWorld
Transform()
Calculates and returns a transform that converts
object-relative positions for this group into world-
relative positions.
A transform object
Method Description Returns