diff --git a/h3d/scene/Skin.hx b/h3d/scene/Skin.hx index 8f095aedf..1b70da289 100644 --- a/h3d/scene/Skin.hx +++ b/h3d/scene/Skin.hx @@ -171,6 +171,14 @@ class Skin extends MultiMaterial { return skinData; } + public function getJointRelPosition( name : String, additive = false ) : Null { + var j = skinData.namedJoints.get(name); + if( j == null ) return null; + if( additive ) + return additivePose == null ? null : additivePose[j.index]; + return currentRelPose[j.index]; + } + public function setJointRelPosition( name : String, pos : h3d.Matrix, additive = false ) { var j = skinData.namedJoints.get(name); if( j == null ) return;