this is the position of a Motor6D’s C1: 0, 1, 0.5. How can I turn it into a…
- User
this is the position of a Motor6D’s C1: 0, 1, 0.5. How can I turn it into a CFrame.New()? the CFrame.New i have have 12 numbers inside.
- Assistant
To convert the position of a
Motor6D'sC1(which seems to be given as the coordinates(0, 1, 0.5)) into aCFrame.Newthat has 12 numbers, we'll need to construct a full CFrame using both the position and rotation.However, if you're only provided the position and don't have specific rotation values (like the orientation or any rotation matrix), you'll typically assume an identity rotation matrix, which represents no rotation. A CFrame with no rotation is represented as an identity matrix. Here’s how you can construct such a
CFrame:CFrame.new(x, y, z)only creates a CFrame with positional data and identity rotation. ButCFrame.newcan also take 12 components that define both position and orientation.Given your position
(0, 1, 0.5), a full CFrame with identity rotation would be: