Skip to content

Commit 23e1e13

Browse files
committed
fix mace hand position on controllers other than vive wands
1 parent e706a8d commit 23e1e13

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

common/src/main/java/org/vivecraft/client_vr/render/VivecraftItemRendering.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,12 @@ public static void applyFirstPersonItemTransforms(PoseStack pMatrixStack, Vivecr
344344
translateY = 0.0D;
345345
translateX = 0.0D;
346346
} else if (rendertype == VivecraftItemTransformType.Mace) {
347-
translateX = 0.00D;
348-
translateY = 0.02D;
349-
translateZ = -0.07D;
347+
preRotation = Axis.XP.rotationDegrees((float) gunAngle);
348+
translateX = 0.0D;
349+
translateY = 0.0125;
350+
translateZ = -0.06;
351+
rotation = rotation.mul(Axis.XP.rotationDegrees((float) -gunAngle));
352+
scale = 0.56F;
350353
}
351354
}
352355
} else {

0 commit comments

Comments
 (0)