mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-02-03 16:54:57 +01:00
Mul-ing things over
- Add missing multiply functions to TransformedInstance
This commit is contained in:
parent
90e088aedc
commit
40cfc08025
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue