Mul-ing things over

- Add missing multiply functions to TransformedInstance
This commit is contained in:
Jozufozu 2024-09-20 19:28:27 -07:00
parent 90e088aedc
commit 40cfc08025

View file

@ -41,6 +41,19 @@ public class TransformedInstance extends ColoredLitInstance implements Affine<Tr
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;