Click or drag to resize
DigitalRuneLookAtIKSolver Class
Rotates a bone to look at a target.
Inheritance Hierarchy

Namespace: DigitalRune.Animation.Character
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public class LookAtIKSolver : IKSolver

The LookAtIKSolver type exposes the following members.

Constructors
  NameDescription
Public methodLookAtIKSolver
Initializes a new instance of the LookAtIKSolver 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.)
Protected methodOnInvalidate
Called when the SkeletonPose was exchanged.
(Inherited from IKSolver.)
Protected methodOnSolve
Called when Solve(Single) is called.
(Overrides IKSolverOnSolve(Single).)
Public methodSolve
Modifies the SkeletonPose to reach the Target position.
(Inherited from IKSolver.)
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 bone.
Public propertyEyeOffset
Gets or sets the eye offset in bone space.
Public propertyForward
Gets or sets the forward direction in bone space.
Public propertyLimit
Gets or sets the rotation limit.
Public propertyMaxAngularVelocity
Gets or sets the maximal angular velocity per bone.
(Inherited from IKSolver.)
Public propertySkeletonPose
Gets or sets the skeleton pose.
(Inherited from IKSolver.)
Public propertyTarget
Gets or sets the target position in model space.
(Inherited from IKSolver.)
Public propertyUp
Gets or sets the up direction in bone space.
Public propertyWeight
Gets or sets the weight.
(Inherited from IKSolver.)
Top
Explicit Interface Implementations
Remarks

This IKSolver rotates a bone - usually the head bone - to look to the Target position. The bone to be rotated is specified by BoneIndex.

Forward defines the forward look direction relative to the bone space. Up defines the up direction relative to the bone space. EyeOffset can be used to offset look origin relative to the bone space. For example, the origin of a "head" bone is often at the neck of a character. EyeOffset can be used to set the offset from the bone origin to the eyes of the character.

Limit specifies an angular limit like a cone around the forward direction. The IK solver will not rotate the beyond this limit. See description of the property.

See also IKSolver for more general information.

See Also