There was an error while loading. Please reload this page.
1 parent 3989c2f commit 30f0ed6Copy full SHA for 30f0ed6
1 file changed
src/systems/minecraft/itemModelManager.ts
@@ -96,18 +96,18 @@ export function applyModelDisplayTransform(
96
const rot = display.rotation.map((n: number) => (n * Math.PI) / 180)
97
matrix.makeRotationFromEuler(Reusable.euler1.set(-rot[0], -rot[1], rot[2]))
98
}
99
+ if (display.scale) {
100
+ matrix.scale(Reusable.vec2.set(...display.scale))
101
+ }
102
if (display.translation) {
103
matrix.setPosition(
104
Reusable.vec1.set(
105
display.translation[0],
106
display.translation[1],
- display.translation[2]
107
+ -display.translation[2]
108
)
109
110
- if (display.scale) {
- matrix.scale(Reusable.vec2.set(...display.scale))
- }
111
112
itemModel.boundingBox.applyMatrix4(matrix)
113
itemModel.outline.geometry.applyMatrix4(matrix)
0 commit comments