most entitys working backup

This commit is contained in:
2026-08-04 13:26:54 -05:00
parent 10e4dffe1e
commit 97ff275467
3 changed files with 213 additions and 6 deletions
+4 -2
View File
@@ -185,7 +185,9 @@
var bone = bones[name];
if (!bone) return;
var pivot = bone.pivot || [0, 0, 0];
var rot = (bone.rotation || [0, 0, 0]).map(function (d) { return d * DEG; });
// Bedrock/GeckoLib rotations are opposite the Three.js default
// direction, so negate the Euler angles (identity models unaffected).
var rot = (bone.rotation || [0, 0, 0]).map(function (d) { return -d * DEG; });
var local = multiply(
translation(pivot[0], pivot[1], pivot[2]),
multiply(
@@ -199,7 +201,7 @@
(bone.cubes || []).forEach(function (c) {
var origin = c.origin || [0, 0, 0];
var size = c.size || [1, 1, 1];
var cRot = (c.rotation || [0, 0, 0]).map(function (d) { return d * DEG; });
var cRot = (c.rotation || [0, 0, 0]).map(function (d) { return -d * DEG; });
var cubeWorld = multiply(
world,
multiply(