Motor
Motor ("movement muscle").
If the <Body>
is a bone, the <Constraint>
is the joint between the bones, then the <Motor>
will be the muscle. If <Motor>
is not described, then the bone will hang loose under the influence of gravity and inertia according to the limitations of the <Constraint>
.
NOTE: <Motor>
is not used with the constraints of the following types: Ragdoll
, UnlimitedHinge
, and Rigid
.
Attributes:
-
Type="Spring"
Type of the motor.
Values:Spring
- a spring.Position
- a position that can be controlled by pressing certain buttons when this constraint is a Powered Constraint or Controlled Constraint.
For details on Powered Constraints, see Powered Constraints: Overview and<PoweredConstraints>
.
For details on Controlled Constraints, see<ControlledConstraints>
and Controls for Controlled Constraints of Addon.
-
Spring="0.5"
This attribute is used for theSpring
type of the motor. Its value is the stiffness of the spring.
Default value:0
, limits:[0, 1000000000]
. -
Damping="0.02"
Damping.
Value:Spring
: by default:0
, limits:[0, 1000000000]
.Position
: by default:1
, limits:[0, 1]
.
-
Tau="0.9"
This attribute is used for motors of thePosition
type that are controlled. A coefficient that determines the effect of the Havok physics on the constraint when it is trying to reach a given position. IfTau
equals to0
, then the physical object will move according to the surrounding physics, without the influence of the controlling at all. IfTau
equals to1
, then the surrounding physics will not affect the controlling at all.
Default value:0.8
, Limits:[0, 1]
. -
Force="0.9"
This attribute is used for motors of thePosition
type that are controlled. The force applied to the body that allows it to reach a given position. Default value:0
, Limits:[0, 1000000000]
.