#how can i turn CFrame into orientation

1 messages · Page 1 of 1 (latest)

swift dune
#

i have a CFrame value and i want to get the orientation from it, how can i do that?

summer violet
#

your cframe value - CFrame.Orientation

#

just add .Orientation to it

swift dune
#

that dosent work

swift dune
uncut moon
#

try :ToOrientation

swift dune
uncut moon
#

if not i would just look through the CFrame docs

swift dune
uncut moon
#

oof

swift dune
#

the closest i got was :toeulerangles

uncut moon
#

what is To Orientation returning?

swift dune
#

which i have no clue how to convert to orientation

#

hold on ill use baseplate as example

#

it returns -0 1.5707963705062866 0
when the orientation is 0,90,0

uncut moon
#

Where are you getting the CFrame from? Are you making it or getting it from a different object?

swift dune
#

u can see in the image its literally baseplate

summer violet
# swift dune not a thing

oh thought it was considering you could just create a part set its cframe to your value then do .orientation

swift dune
#

fair

uncut moon
#

try just getting the .Rotation of the baseplate, or do you need from a CFrame

swift dune
#

its not orientation

uncut moon
#

k

summer violet
#

just destroy part after

#

theres so many ways you can do something to achieve exactly the same effect

plain hill
#

CFrame.Angles

swift dune
#

gamer8s idea works fine so im using that