Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What do negative vectors do? (E.g -lookVector)

Asked by 6 years ago

I wanted to make a wandering NPC that finds its way around using raycasting. But there doesn't seem to be a way to make a leftVector. For example, there is a CFrame.rightVector, but no CFrame.leftVector. Can I achieve something like CFrame.leftVector by doing this?:

-part.CFrame.rightVector
1
Yes, that would be correct. rightVector, lookVector, and upVector represent the axes in three-dimensional space. For each axis, you have two opposite directions, negative and positive. ScriptGuider 5640 — 6y
0
Thank you! ronitrocket 120 — 6y

1 answer

Log in to vote
0
Answered by 3 years ago
-script.Parent.CFrame.RightVector

would be LeftVector basically

Ad

Answer this question