Fix pos-to-right util

This commit is contained in:
Vortrex
2022-05-08 06:51:20 -05:00
parent c6b73ae77e
commit ae3547e946

View File

@@ -1729,11 +1729,9 @@ function getObjectModelFromName(name, gameId = getGame()) {
// ===========================================================================
// ===========================================================================
function getPosToRightOfPos(pos, angle, distance) {
let x = (pos.x+((Math.cos((-angle+1.57)+(Math.PI/2)))*distance));
let y = (pos.y+((Math.sin((-angle+1.57)+(Math.PI/2)))*distance));
let x = (pos.x+((Math.cos((angle-1.57)+(Math.PI/2)))*distance));
let y = (pos.y+((Math.sin((angle-1.57)+(Math.PI/2)))*distance));
let rightPos = toVector3(x, y, pos.z);