local function cfGetComponents(cf: CFrame)
local pos = cf.Position
local xVec = cf.XVector
local yVec = cf.YVector
local zVec = cf.ZVector
return pos.X, pos.Y, pos.Z, xVec.X, yVec.X, zVec.X, xVec.Y, yVec.Y, zVec.Y, xVec.Z, yVec.Z, zVec.Z
end
I can implement CFrame:GetComponents() as a custom function like this, but it’s a bit inconvenient that there isn’t a native method for it.
Next, it would be great to have the ability to create a CFrame from its elements:
CFrame.new(x, y, z, r00, r01, r02, r10, r11, r12, r20, r21, r22)
and also to create one from a quaternion: CFrame.new(x, y, z, qx, qy, qz, qw: number?)
I would really appreciate it if these were added as a lower-priority item!