Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to get the rotation aspect of a Cframe in numbers?

Ok so I have a Cframe but I need to know the exact values of the XYZ rotations in the cframe in either degrees or radians.

camera = game.Workspace.CurrentCamera
local CameraCFrame = camera.CoordinateFrame
local PureRotation = CameraCFrame - Camera.CFrame.p
print(-- how would i get the XYZ rotation in degrees or radians from the the pure rotation CFrame??)

I also looked at the cframe properties and there isn't any kind of rotation property.

1 answer

To my knowledge CFrame doesn't have a rotation property. Though subtracting the position from the CFrame does work I'm sure.

a.CFrame - a.CFrame.p

2 comments

0

i know this

0

But i need the rotation in numbers

This discussion is preserved as it was. New answers, comments, and votes are closed.