This code runs when the W key is pressed, and moves the ball forwards, in the direction the camera is facing. I am confused because it is using the negative RightVector of the camera to achieve this. Wouldn’t that make the ball move left?
AngularVelocity works in a different space that isn’t entirely linear, it’s on the unit circle. Each basis direction (x, y, and z) represents the vector the plane of rotation is perpendicular to. In this case (of Roblox) x represents pitch (up and down rotation), while y represents yaw (right and left) and x represents roll (tilt to the left or right).
It’s easier to see in this. On the unit circle, any direction to the edge of the circle is at a distance of 1, so to rotate 180 degrees in any way, we would need to move across the surface by pi amount to reach the other side, or pi radians, each radian representing exactly the length of one on the surface. To spin 180 degrees in a second, you would need an angular velocity of pi (if we are talking about 2 dimensions)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.