August 18, 2016, 9:29pm
With the most recent update, CFrame.upVector and CFrame.rightVector were added as properties of CoordinateFrames. Obviously, they aren’t on the wiki yet, but that should be corrected. Their names are pretty self explanatory; upVector is a unit vector that indicates the direction that is ‘up’ for the CFrame, and rightVector is the same but for the right.
The blue part is lookVector, the red part is rightVector, and the green upVector
August 18, 2016, 10:03pm
Ah, totally forgot to do that. Enjoy the new vectors!
August 22, 2016, 6:51pm
is there a CFrame.frontVector propertie?
August 22, 2016, 6:52pm
nevermind sorry forgot lookVector was that xD
August 22, 2016, 7:23pm
Yep. In fact, lookVector is actually the negative of the back vector, which is what you get from CFrame:components() because in ROBLOX, +Z is coming out of the screen.
August 25, 2016, 5:25pm
Due to a very silly oversight by myself, these won’t work in server scripts just yet. I hope to have that fixed today, just wanted to note that in case anyone tried it and became confused.
Should be working all over now. Enjoy!
October 25, 2022, 8:28pm
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.