Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

2 comments

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.

0

Thank you!

1 answer

-script.Parent.CFrame.RightVector

would be LeftVector basically

This discussion is preserved as it was. New answers, comments, and votes are closed.