Click or drag to resize
DigitalRuneRagdollDriveToPose Method (SkeletonPose, Single)
Drives the ragdoll bodies to the target pose using the Motors.

Namespace: DigitalRune.Physics.Specialized
Assembly: DigitalRune.Physics.Specialized (in DigitalRune.Physics.Specialized.dll) Version: 1.10.0.0 (1.10.0.0)
Syntax
public void DriveToPose(
	SkeletonPose skeletonPose,
	float deltaTime
)

Parameters

skeletonPose
Type: DigitalRune.Animation.CharacterSkeletonPose
The target skeleton pose.
deltaTime
Type: SystemSingle
The time step (in seconds). See remarks.
Exceptions
ExceptionCondition
ArgumentNullExceptionskeletonPose is .
InvalidOperationException Ragdoll was not added to a simulation.
Remarks

This method controls the motors. If the ragdoll does not have any motors, this method does nothing. The ragdoll bodies are not changed by this method. The bodies will move the next time the simulation is updated (see method Update(TimeSpan)) is called.

The parameter deltaTime is only necessary for velocity motors (Velocity). The parameter must specify the time step size of the next physics update.

See Also