All Classes Namespaces Functions Variables Enumerations Properties Pages
Classes | Public Member Functions | Public Attributes | List of all members
IKSolverLookAt Class Reference

Rotates a hierarchy of bones to face a target. More...

Inheritance diagram for IKSolverLookAt:
Inheritance graph
[legend]
Collaboration diagram for IKSolverLookAt:
Collaboration graph
[legend]

Classes

class  LookAtBone
 Look At bone class. More...
 

Public Member Functions

void SetLookAtWeight (float weight)
 Sets the look at weight. NOTE: You are welcome edit the weights directly, this method is here only to match the Unity's built in IK API. More...
 
void SetLookAtWeight (float weight, float bodyWeight)
 Sets the look at weight. NOTE: You are welcome to edit the weights directly, this method is here only to match the Unity's built in IK API. More...
 
void SetLookAtWeight (float weight, float bodyWeight, float headWeight)
 Sets the look at weight. NOTE: You are welcome to edit the weights directly, this method is here only to match the Unity's built in IK API. More...
 
void SetLookAtWeight (float weight, float bodyWeight, float headWeight, float eyesWeight)
 Sets the look at weight. NOTE: You are welcome to edit the weights directly, this method is here only to match the Unity's built in IK API. More...
 
void SetLookAtWeight (float weight, float bodyWeight, float headWeight, float eyesWeight, float clampWeight)
 Sets the look at weight. NOTE: You are welcome to edit the weights directly, this method is here only to match the Unity's built in IK API. More...
 
void SetLookAtWeight (float weight, float bodyWeight=0f, float headWeight=1f, float eyesWeight=0.5f, float clampWeight=0.5f, float clampWeightHead=0.5f, float clampWeightEyes=0.3f)
 Sets the look at weight. NOTE: You are welcome to edit the weights directly, this method is here only to match the Unity's built in IK API. More...
 
override void StoreDefaultLocalState ()
 Stores the default local state for the bones used by the solver. More...
 
override void FixTransforms ()
 Fixes all the Transforms used by the solver to their initial state. More...
 
override bool IsValid (ref string message)
 Determines whether this instance is valid or not. If returns false, also fills in an error message. More...
 
override IKSolver.Point[] GetPoints ()
 Gets all the points used by the solver. More...
 
override IKSolver.Point GetPoint (Transform transform)
 Gets the point with the specified Transform. More...
 
bool SetChain (Transform[] spine, Transform head, Transform[] eyes, Transform root)
 Reinitiate the solver with new bone Transforms. More...
 
- Public Member Functions inherited from IKSolver
bool IsValid ()
 Determines whether this instance is valid or not. More...
 
void Initiate (Transform root)
 Initiate the solver with specified root Transform. Use only if this IKSolver is not a member of an IK component. More...
 
void Update ()
 Updates the IK solver. Use only if this IKSolver is not a member of an IK component or the IK component has been disabled and you intend to manually control the updating. More...
 
virtual Vector3 GetIKPosition ()
 Gets the IK position. NOTE: You are welcome to read IKPosition directly, this method is here only to match the Unity's built in IK API. More...
 
void SetIKPosition (Vector3 position)
 Sets the IK position. NOTE: You are welcome to set IKPosition directly, this method is here only to match the Unity's built in IK API. More...
 
float GetIKPositionWeight ()
 Gets the IK position weight. NOTE: You are welcome to read IKPositionWeight directly, this method is here only to match the Unity's built in IK API. More...
 
void SetIKPositionWeight (float weight)
 Sets the IK position weight. NOTE: You are welcome to set IKPositionWeight directly, this method is here only to match the Unity's built in IK API. More...
 
Transform GetRoot ()
 Gets the root Transform. More...
 
delegate void UpdateDelegate ()
 Delegates solver update events. More...
 
delegate void IterationDelegate (int i)
 Delegates solver iteration events. More...
 

Public Attributes

Transform target
 The target Transform. More...
 
LookAtBone[] spine = new LookAtBone[0]
 The spine hierarchy. More...
 
LookAtBone head = new LookAtBone()
 The head bone. More...
 
LookAtBone[] eyes = new LookAtBone[0]
 The eye bones. More...
 
float bodyWeight = 0.5f
 The body weight. More...
 
float headWeight = 0.5f
 The head weight. More...
 
float eyesWeight = 1f
 The eyes weight. More...
 
float clampWeight = 0.5f
 Clamp weight for the body. More...
 
float clampWeightHead = 0.5f
 Clamp weight for the head. More...
 
float clampWeightEyes = 0.5f
 Clamp weight for the eyes. More...
 
int clampSmoothing = 2
 Number of sine smoothing iterations applied on clamping to make the clamping point smoother. More...
 
AnimationCurve spineWeightCurve = new AnimationCurve(new Keyframe[2] { new Keyframe(0f, 0.3f), new Keyframe(1f, 1f) })
 Weight distribution between the spine bones. More...
 
Vector3 spineTargetOffset
 Offset for the spine target in world space.. More...
 
- Public Attributes inherited from IKSolver
Vector3 IKPosition
 The IK position. More...
 
float IKPositionWeight = 1f
 The IK position weight or the master weight of the solver. More...
 
UpdateDelegate OnPreInitiate
 Called before initiating the solver. More...
 
UpdateDelegate OnPostInitiate
 Called after initiating the solver. More...
 
UpdateDelegate OnPreUpdate
 Called before updating. More...
 
UpdateDelegate OnPostUpdate
 Called after writing the solved pose More...
 

Additional Inherited Members

- Static Public Member Functions inherited from IKSolver
static Transform ContainsDuplicateBone (Bone[] bones)
 Checks if an array of objects contains any duplicates. More...
 
- Properties inherited from IKSolver
bool initiated [get, set]
 Gets a value indicating whether this IKSolver has successfully initiated. More...
 

Detailed Description

Rotates a hierarchy of bones to face a target.