Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I get Vector3 Velocity from UDim2 Gui Rotation?

Asked by
GShocked 150
4 years ago

I have the screen GUI below which is supposed to control the velocity of a ball that is centered on the screen.

https://imgur.com/a/av8uzwG

The camera is able to orbit freely around the ball, so the GUI's effect on the ball's velocity changes depending on the orientation of the camera. How might I calculate the velocity of the ball given the orientation of the camera and rotation of the GUI?

Answer this question