TruWorlds

Model

Inherits: VisualInstance

Model is a special type of PhysicsInstance that can contain other PhysicsInstance instances as children. Physics instances parented to a Model will be joined together and move as a single unit.

Properties

PrimaryBody Instance?

Functions

MakeJoints()

Welds all touching parts within the model together, allowing them to move as a single unit.

MakeJointsToPrimaryBody()

Welds every physics part within the model directly to the model's primary body. Unlike MakeJoints, this does not require parts to be touching — every part gets a weld straight to the primary body regardless of proximity.

RemoveJoints() Returns int

Removes all welds connected to any physics instance within this model.