Maven module :un.api : api-physics :
Class : un.api.physic.skeleton.Skeleton
Extends/Implements : un.api.CObject
Subclasses : -

Skeleton composed of joints.
author  Johann Sorel


Variables : -
Functions : Skeleton, getJoints, getJoint, getIks, getRoots, updateBindPose, updateInvBindPose, reverseWorldPose, resetToWorldPose, resetToBase, solveKinematics, copy, toChars, toChars



public void Skeleton ()

public Sequence getJoints ()


Get the joint for given bone name
param  boneName not null
return  Joint may be null
public Joint getJoint (CharArray boneName)


return  Sequence of inverse kinematics.
public Sequence getIks ()


Get all root joints in the skeleton
return  Sequence, never null.
public Sequence getRoots ()


Calculate root to joint matrix and invert matrix for each joint.
public void updateBindPose ()


Calculate root to joint matrix and invert matrix for each joint.
public void updateInvBindPose ()


When all joints transforms are world to joint transforms.
This method will rebuild the parent to joint transforms.
public void reverseWorldPose ()


When all joints transforms are parent to joint transforms.
This method will rebuild the world to joint transforms.
public void resetToWorldPose ()


Use the inverse bind pose matrix to restore the original joint poses.
Bind pose matrix and NodeTransform are restored.
public void resetToBase ()


Loop on all inverse kinematics and call solve method.
public void solveKinematics ()

public Skeleton copy ()

public Chars toChars ()

public Chars toChars (int maxDepth)