fix align Y to align Y instead of X
This commit is contained in:
parent
68db33df3f
commit
1231455856
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ function onLeftySelect() {
|
||||||
let projectedNormal = new Vector3(lastface.normal.x, lastface.normal.y, 0).normalize();
|
let projectedNormal = new Vector3(lastface.normal.x, lastface.normal.y, 0).normalize();
|
||||||
|
|
||||||
// Target direction on XY plane (negative Y axis)
|
// Target direction on XY plane (negative Y axis)
|
||||||
let targetDir = new Vector3(0, -1, 0);
|
let targetDir = new Vector3(-1, 0, 0);
|
||||||
|
|
||||||
// Calculate angle between projected normal and target
|
// Calculate angle between projected normal and target
|
||||||
let angle = Math.atan2(
|
let angle = Math.atan2(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue