Update init.lua
This commit is contained in:
parent
29be312612
commit
10f91c8f36
1 changed files with 5 additions and 4 deletions
|
@ -57,10 +57,11 @@ end
|
|||
|
||||
function Util.ToRotation(v: Vector3int16): CFrame
|
||||
local angle = Util.ToEulerAngles(v)
|
||||
|
||||
local matrix = CFrame.fromAxisAngle(Vector3.yAxis, angle.Y)
|
||||
* CFrame.fromAxisAngle(Vector3.xAxis, -angle.X)
|
||||
* CFrame.fromAxisAngle(Vector3.zAxis, -angle.Z)
|
||||
|
||||
-- stylua: ignore
|
||||
local matrix = CFrame.fromAxisAngle(Vector3.yAxis, angle.Y)
|
||||
* CFrame.fromAxisAngle(Vector3.xAxis, -angle.X)
|
||||
* CFrame.fromAxisAngle(Vector3.zAxis, -angle.Z)
|
||||
|
||||
return matrix
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue