What's New in Director 8.5 > Working with Models and Model Resources > Models |  |

Models

Models can be referred to by name or number. Models can be added to or removed from the world at any time.

In the member's parent-child hierarchy, each model must have one parent, but it can have an unlimited number of children. A child's position and orientation depend on its parent's position and orientation, and it changes when the position and orientation of the parent changes. Models that don't have another model and a parent have the group named world as their parent. In this case, their `transform` property describes their position and rotation in the 3D world, and is identical to their `getWorldTransform()` property. All models that have models as parents have a relationship both to their immediate parent and to the world parent. You can add or remove models from the 3D world at any time by using the `addToWorld()` or `removeFromWorld()` commands.

For example, if the first child of the model named `car1` is a wheel model, the following `transform` Lingo would refer to the position of the wheel relative to the model named `car1`:

    car1.child(1).transform.position

To refer to the position of the wheel model relative to the world itself, use `getWorldTransform()`:

    car1.child(1).getWorldTransform().position