RagdollMotor Class |
Namespace: DigitalRune.Physics.Specialized
The RagdollMotor type exposes the following members.
Name | Description | |
---|---|---|
RagdollMotor |
Initializes a new instance of the RagdollMotor class.
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
BoneIndex |
Gets or sets the index of the controlled bone.
| |
ConstraintDamping |
Gets or sets the damping constant of a constraint motor.
| |
ConstraintSpring |
Gets or sets the spring constant of a constraint motor.
| |
Enabled |
Gets or sets a value indicating whether this motor is enabled.
| |
MaxConstraintForce |
Gets or sets the maximal force that is applied by a constraint motor.
| |
Mode |
Gets or sets the motor mode.
| |
ParentIndex |
Gets or sets the index of the parent bone to which the controlled bone is connected.
| |
Ragdoll |
Gets the ragdoll.
|
Ragdolls without motors react to collisions, but are passive. Motors can be used to actively move the limbs to a target position.
A ragdoll motor is either a velocity motor or a constraint motor, see Mode. See the description of RagdollMotorMode for more information.
A constraint motor controls the orientation of a bone relative to its parent bone. Usually, the parent of a bone can be determined using the Skeleton (see method GetParent(Int32)). But often a ragdoll does not have a rigid body for each bone of the skeleton - some bones are "skipped" for performance reasons. For a ragdoll motor the parent bone should be set to the bone to which the controlled bone is connected.
Damping only:
Constraint motors with a positive ConstraintDamping value and a
ConstraintSpring of 0 can be used to create a passive, damped ragdoll. Damping
is very helpful to bring jittering ragdolls to rest.