Package com.jme3.anim
Class SeparateJointModelTransform
java.lang.Object
com.jme3.anim.SeparateJointModelTransform
- All Implemented Interfaces:
JointModelTransform
This JointModelTransform implementation accumulates model transform in a Transform class
This does NOT support proper nonuniform scale in the armature hierarchy.
But the effect might be useful in some circumstances.
Note that this is how the old animation system was working, so you might want to use this
if your model has nonuniform scale and was migrated from an old j3o model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyBindPose
(Transform localTransform, Matrix4f inverseModelBindMatrix, Joint parent) Configure joint's local transform for bind pose.Determine the joint's transform in model space.void
getOffsetTransform
(Matrix4f outTransform, Matrix4f inverseModelBindMatrix) Determine the joint's skinning transform.void
updateModelTransform
(Transform localTransform, Joint parent) Update the joint's transform in model space.
-
Constructor Details
-
SeparateJointModelTransform
public SeparateJointModelTransform()
-
-
Method Details
-
updateModelTransform
Description copied from interface:JointModelTransform
Update the joint's transform in model space.- Specified by:
updateModelTransform
in 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:JointModelTransform
Determine the joint's skinning transform.- Specified by:
getOffsetTransform
in 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:JointModelTransform
Configure joint's local transform for bind pose.- Specified by:
applyBindPose
in 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
-
getModelTransform
Description copied from interface:JointModelTransform
Determine the joint's transform in model space.- Specified by:
getModelTransform
in interfaceJointModelTransform
- Returns:
- a new instance or a pre-existing one
-