Skip to content

Commit

Permalink
Mul-ing things over
Browse files Browse the repository at this point in the history
- Add missing multiply functions to TransformedInstance
  • Loading branch information
Jozufozu committed Sep 21, 2024
1 parent 90e088a commit 40cfc08
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ public TransformedInstance scale(float x, float y, float z) {
return this;
}

public TransformedInstance mul(Matrix4fc other) {
pose.mul(other);
return this;
}

public TransformedInstance mul(PoseStack.Pose other) {
return mul(other.pose());
}

public TransformedInstance mul(PoseStack stack) {
return mul(stack.last());
}

public TransformedInstance setTransform(Matrix4fc pose) {
this.pose.set(pose);
return this;
Expand Down

0 comments on commit 40cfc08

Please sign in to comment.