I’ve been looking through the ROBLOX developer documentation for information on how CFrames actually work (i.e what data is contained in a CFrame, how that data is manipulated, etc.) but I can’t find anything about it. I really want to know what the data structure of a CFrame actually looks like. Is it a type of matrix? Is it just an origin and Euler angles (as Vector3s) rolled into one data structure? I can’t seem to find any information on this!
A basic summary:
A CFrame is a data type that represents both position and rotation. It’s basically a much simpler way of controlling an item’s physical state in 3D space.
2 Likes
Search CFrame on the create.roblox.com site.
Documentation: CFrame | Documentation - Roblox Creator Hub
1 Like
That’s pretty much what the docs said, but it doesn’t say much about the actual data type. Is it a matrix? Is it just two Vector3s? That’s the kind of answer I need.
I guess I didn’t look hard enough before, but the CFrame documentation (scripting API) describes the actual data structure as a Vector3 and a rotation matrix. This is exactly what I needed.
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.