How would I convert a Quaternion to a CFrame?
local quat = {
x = 0.5,
y = 0.5,
z = 0.5,
w = 0.5
}
How would I convert a Quaternion to a CFrame?
local quat = {
x = 0.5,
y = 0.5,
z = 0.5,
w = 0.5
}
Alright got it working with this module!
Used this method
Quaternion:ToCFrame()
Roblox’s CFrame library also has a constructor that takes a position and a quaternion. I think this will work.
local cf: CFrame = CFrame.new(0, 0, 0, quat.x, quat.y, quat.z, quat.w)
Oh dang didnt even need that entire module, thanks man!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.