There are many things that you need to know and learn as one of Roblox players. One of them is related the Roblox Coordinate System. If you search its information from your choce browser, you may will be able to find a thing named CFrame. It is short for Coordinate Frame.
For those who are new in Roblox, you may will be confuse what is CFrame or Coordinate Frame. You do not worry about that because here in this article we are going to talk about Roblox Coordinate System or which is well known as Coordinate Frame (CFrame). Therefore, to get its information, just continue this entire article below.
Firstly, we are going to explain what it CFrame itself. You have to remember that a Roblox CFrame is a userdata item that containing position and rotation data. Apparently, it is able to be used to accurately position BaseParts through their CFrame property. It is unlike Position which allows the part to be placed overlapping another part and be rotated. In this case, you are able to position a part just like you will using the Position property.
Now, let us to talk regarding the components of a CFrame. For your information, CFrame is made up of 12 separate numbers. We are able to call these as the components. Simply, we are able to simply find out what those numbers are by calling the CFrame:components() way that returns said numbers. We are able also to input those 12 numbers directly once we are defining a Roblox CFrame. The first three of the 12 numbers are the x, y, and z components of the Roblox CFrame (Cooridinate Frame), in other words the position. Then, the rest of the numbers create up the rotation aspect of the Roblox CFrame. You have to know that those numbers may look daunting, but if we organize them a bit differently, so we are able to see that the columns represents the rightVector, upVector, and the negative lookVector respectively.
Having those vectors to visualize will helps us to see what the rotation numbers of our CFrame that are actually doing. We are able to see that they represent three orthogonal vectors which all trace a 3D sphere of rotation. Talking about Roblox CFrame, there are some things that you have to know. Those are about the Constructors, members, operators and ways of Roblox Cframe (Coordinate Frame). But, in this article, we are going to tell a little bit about the members of Roblox CFrame. To know its information, just see and read the text below.
MEMBERS OF CFRAME
- Vector3 p (It is the translation)
- Number x (It is the x-component of translation)
- Number y (It is the y-component of translation)
- Number z (It is the z-component of translation)
- Vector3 lookVector (It returns the facing direction along each axis)
The last, if you need more information related Roblox Coordinate System or Roblox Coordinate Frame, you are able to visit the page of CFrame on Wikia.