Physics math help

Not sure if this was the correct thread to put this under but…

I’m making a game that requires a constant linear velocity at different distances from the center-point. I can achieve this by adjusting the angular velocity but after hours of trying to figure out the equation i have come to ask for help.

I can get the current linear-velocity like this
double Velocity = (2 * Math.PI * (Radius * ((Angle - LastAngle) / 180 ))) / Time.deltaTime;

please help

Do you mean you are just wanting to grab the magnitude of the velocity?

Current linear velocity should be this:
RigidBody.velocity.magnitude (in units/second)

Current angular velocity should be this:
RigidBody.angularVelocity.magnitude (in radians/second)

ETA: my apologies if I do not understand your question.

I have good command in solving the physics related questions. In your case you just need to modify your equation.Double Velocity = 2 ( Math.PI * (Radius * ((Angle - LastAngle) / 180 ))) / Time.deltaTime.Because you double the velocity and rest of the entries should be double. Hope it will helpful for you to make direction of the game correct. I like to offer physics help because it’s my primary responsibility to help those who are not good in physics and solve their problems.

1 Like