Click or drag to resize
DigitalRuneRagdollMotor Class
Drives a body of a ragdoll to a target position.
Inheritance Hierarchy
SystemObject
  DigitalRune.Physics.SpecializedRagdollMotor

Namespace: DigitalRune.Physics.Specialized
Assembly: DigitalRune.Physics.Specialized (in DigitalRune.Physics.Specialized.dll) Version: 1.10.0.0 (1.10.0.0)
Syntax
public class RagdollMotor

The RagdollMotor type exposes the following members.

Constructors
  NameDescription
Public methodRagdollMotor
Initializes a new instance of the RagdollMotor class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyBoneIndex
Gets or sets the index of the controlled bone.
Public propertyConstraintDamping
Gets or sets the damping constant of a constraint motor.
Public propertyConstraintSpring
Gets or sets the spring constant of a constraint motor.
Public propertyEnabled
Gets or sets a value indicating whether this motor is enabled.
Public propertyMaxConstraintForce
Gets or sets the maximal force that is applied by a constraint motor.
Public propertyMode
Gets or sets the motor mode.
Public propertyParentIndex
Gets or sets the index of the parent bone to which the controlled bone is connected.
Public propertyRagdoll
Gets the ragdoll.
Top
Remarks

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.

See Also