Hello, I’m trying to find where the camera is looking at more specifically on the axis on a 2d plane. For example moving the camera up and down is y and moving it left and right is x. How would I find the x in degrees?
Hopefully you understand if not I can try to explain it more.
Thank you.
So basically which way there camera is facing?
That would be
workspace.CurrentCamera.CFrame.LookVector()
I think.
Note that would only run client wise cause camera is a part of the client
1 Like
I tried it, but quick question do you know how to round something in intervals of 45. Like 78 would round to 90 or 40 would round to 45, etc. Thanks.
I found a forum post. I think it explains how to round the numbers.
Quick question
What’s the most efficient way to round a number to the nearest 10?
For example
25 —> 30
41 —> 40
This rounds to the nearest 10. But Im sure if you play around with it you can get what you want
I realized it wouldn’t round to 45 since it’s not 360 degrees instead a decimal. Thanks I can use it and I think I should round it to ten.
1 Like
system
(system)
Closed
May 4, 2023, 12:53am
#6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.