PhysicsConstraint Type
Stores the current pose for a physics constraint. A physics constraint applies physics to bones.
See Physics constraints in the Spine User Guide.
Constructors
Constructor | Description |
Full Usage:
PhysicsConstraint(data, skeleton)
Parameters:
PhysicsConstraintData
skeleton : Skeleton
|
|
Full Usage:
PhysicsConstraint(constraint, skeleton)
Parameters:
PhysicsConstraint
skeleton : Skeleton
|
Copy constructor.
|
Instance members
Instance member | Description |
Full Usage:
this.Active
Returns: bool
Modifiers: abstract |
|
Full Usage:
this.Bone
|
The bone constrained by this physics constraint. |
Full Usage:
this.Damping
|
|
|
The physics constraint's setup pose data.
|
Full Usage:
this.Gravity
|
|
Full Usage:
this.Inertia
|
|
Full Usage:
this.MassInverse
|
|
Full Usage:
this.Mix
|
A percentage (0-1) that controls the mix between the constrained and unconstrained poses. |
Full Usage:
this.Reset
|
|
Full Usage:
this.Rotate
Parameters:
float32
y : float32
degrees : float32
|
Rotates the physics constraint so next PhysicsConstraint.Update forces are applied as if the bone rotated around the specified point in world space.
|
Full Usage:
this.SetToSetupPose
|
|
Full Usage:
this.Strength
|
|
Full Usage:
this.ToString
Returns: string
Modifiers: abstract |
|
Full Usage:
this.Translate
Parameters:
float32
y : float32
|
Translates the physics constraint so next PhysicsConstraint.Update forces are applied as if the bone moved an additional amount in world space.
|
|
Applies the constraint to the constrained bones.
|
Full Usage:
this.Wind
|
|
|
The physics constraint's setup pose data.
|