mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-15 08:24:51 +00:00
Fix rotation
This commit is contained in:
parent
44883be6c6
commit
077207ca27
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ export function getRotation(obj: ConsoleObject, isInterior = false) {
|
||||||
new Vector3(0, 1, 0),
|
new Vector3(0, 1, 0),
|
||||||
Math.PI / 2
|
Math.PI / 2
|
||||||
);
|
);
|
||||||
return coordSystemFix.multiply(sourceRotation);
|
return sourceRotation.multiply(coordSystemFix);
|
||||||
} else {
|
} else {
|
||||||
// For other objects (terrain, etc)
|
// For other objects (terrain, etc)
|
||||||
return new Quaternion().setFromAxisAngle(
|
return new Quaternion().setFromAxisAngle(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue