Package com.jme3.anim
Class MatrixJointModelTransform
java.lang.Object
com.jme3.anim.MatrixJointModelTransform
- All Implemented Interfaces:
JointModelTransform
This JointModelTransform implementation accumulate joints transforms in a Matrix4f to properly
support non uniform scaling in an armature hierarchy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyBindPose(Transform localTransform, Matrix4f inverseModelBindMatrix, Joint parent) Configure joint's local transform for bind pose.Determine the joint's transform in model space.Access the model transform.voidgetOffsetTransform(Matrix4f outTransform, Matrix4f inverseModelBindMatrix) Determine the joint's skinning transform.voidupdateModelTransform(Transform localTransform, Joint parent) Update the joint's transform in model space.
-
Constructor Details
-
MatrixJointModelTransform
public MatrixJointModelTransform()
-
-
Method Details
-
updateModelTransform
Description copied from interface:JointModelTransformUpdate the joint's transform in model space.- Specified by:
updateModelTransformin interfaceJointModelTransform- Parameters:
localTransform- the joint's local transform (not null, unaffected)parent- the joint's parent, or null for a root joint
-
getOffsetTransform
Description copied from interface:JointModelTransformDetermine the joint's skinning transform.- Specified by:
getOffsetTransformin interfaceJointModelTransform- Parameters:
outTransform- storage for the result (modified if not null)inverseModelBindMatrix- the joint's inverse model bind matrix (not null, unaffected)
-
applyBindPose
Description copied from interface:JointModelTransformConfigure joint's local transform for bind pose.- Specified by:
applyBindPosein interfaceJointModelTransform- Parameters:
localTransform- the joint's local transform (not null, unaffected)inverseModelBindMatrix- the joint's inverse model bind matrix (not null, unaffected)parent- the joint's parent, or null for a root joint
-
getModelTransformMatrix
Access the model transform.- Returns:
- the pre-existing instance
-
getModelTransform
Description copied from interface:JointModelTransformDetermine the joint's transform in model space.- Specified by:
getModelTransformin interfaceJointModelTransform- Returns:
- a new instance or a pre-existing one
-