Click or drag to resize
DigitalRuneCcdIKSolverLimitBoneTransforms Property
Gets or sets the a callback that enforces rotation limits.

Namespace: DigitalRune.Animation.Character
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public Action<int> LimitBoneTransforms { get; set; }

Property Value

Type: ActionInt32
The callback that enforces rotation limits. The default is .
Remarks

If this property is , the bone rotations are not limited. If the bone rotations should be limited, this property must be set to a method that enforces the bone limits: The method should simply check the bones and rotate the bones back to the allowed range.

This method is called every time a bone was rotated. The method will get the bone index as the only parameter. The method should check and correct the rotation of the given bone. (But it can check other bones as well, e.g. child bones if they must have a certain orientation in model space...)

See Also