LocalToWorld.

Is Vector’s Y coordinate given to LocalToWorld is supposed to move target position along RIGHT entity vector?


local P = LocalPlayer():GetPos()
print(P + LocalPlayer():GetRight())
print(P + LocalPlayer():EyeAngles():Right())
print(LocalPlayer():LocalToWorld(Vector(0,1,0)))

-688.525818 -2083.812256 -11135.968750
-688.525818 -2083.812256 -11135.968750
-688.525818 -2081.812256 -11135.968750

WTF?

I don’t see any problem, that’s what LocalToWolrd is supposed to do

Vector(0,1,0) is 1 unit right to the entity, but LTW returns position on left.

Why do you think it must be to the right? I see nothing wrong here either.

-2083 -2081 -1500 -500 0 400 600

-2081 is GREATER than -2083, that’s why it moves that direction