Component
Physics
(NOTE) Takes a snap shot of the current mass and inertia and overrides the object's mass so it can be resized while keeping it's old mass.
Methods | Properties | Base Classes | Derived Classes |
---|---|---|---|
Constructor | Active | component | |
RecomputeMass | AutoComputeCenterOfMass | ||
AutoComputeInertia | |||
InverseMass | |||
LocalCenterOfMass | |||
LocalInverseInertiaTensor | |||
Mass |
Properties
Active : boolean
Determines whether the RigidBody on this Cog will use the cached or actual mass and inertia.
var Active : Boolean
AutoComputeCenterOfMass : boolean
Should the center of mass be auto computed or overwritten (via script).
var AutoComputeCenterOfMass : Boolean
AutoComputeInertia : boolean
Should the inertia tensor be auto computed or overwritten (via script).
var AutoComputeInertia : Boolean
InverseMass : real
The cached inverse mass of this object.
var InverseMass : Real
LocalCenterOfMass : real3
The center of mass in local space to override with. When set, the center of mass will be locked to this value until AutoComputeCenterOfMass is set to true.
var LocalCenterOfMass : Real3
LocalInverseInertiaTensor : real3x3
The inverse inertia tensor this object is saved with.
var LocalInverseInertiaTensor : Real3x3
Mass : real
Overrides the mass of this body. Inertia is updated as a ratio of the new mass to the old mass.
var Mass : Real
Methods
MassOverride : Void
constructor
Name Type Description function MassOverride()
RecomputeMass : Void
Takes a new snapshot of the current mass and inertia. |Name|Type|Description| |---|---|---|
function RecomputeMass()