I’ve been messing around in studio making custom gears, and wanted to adjust the eating animation roblox plays, but to rotate it I have to use those and like.
What do they mean
how do I get from that to like 90 degrees or something
I am so confused DX
Generally, you’ll stick to CFrame.Angles and such as mentioned here, which abstracts away most of the matrix stuff. CFrames are matrices, but you generally don’t need to deal with the components directly.
See also: Incredibly helpful explainers for matrices and vectors
I asked my sister who used to code with roblox to help using this video and she came up with this.
But it’s stuck to only going forward from the hand with any value in position
one more thing; the constructor CFrame.new(vector, vector) can be safely replaced with CFrame.lookAt(vector, vector, vector?), it’s a bit faster and the optional third argument allows you to specify an up direction (defaulting to Vector3.yAxis)
in addition CFrame.lookAlong was added somewhat recently and is equivalent to CFrame.lookAt(pos, pos + for)