Skip to content

Commit

Permalink
added setJointRelPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Nov 12, 2024
1 parent 9c89114 commit b749680
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions h3d/scene/Skin.hx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ class Skin extends MultiMaterial {
return skinData;
}

public function setJointRelPosition( name : String, pos : h3d.Matrix ) {
var j = skinData.namedJoints.get(name);
if( j == null ) return;
currentRelPose[j.index] = pos;
jointsUpdated = true;
}

public function setSkinData( s, shaderInit = true ) {
skinData = s;
jointsUpdated = true;
Expand Down

0 comments on commit b749680

Please sign in to comment.