Projecting the circumference of a circle based on the path of an object (read desc.)

cyentw

New member
Joined
Jan 22, 2014
Messages
1
Ok, I'll try to explain this as best as I can. I am using this problem for a coding project that I've been doing. Here's what I'm trying to accomplish:

There is a space ship which can turn 360 degrees and move forward and backward. The change in the angle can be anywhere from -11 to 11 degrees/second. The speed of the ship can also be anywhere from -11 to 11 pixels/second.

Now here's where I need help. I'm trying to make it so that the game draws a circle which, using the variables of the speed and change in angle, maps out the course that the ship should follow if nothing changes. Is there a way to do this mathematically? I just need an equation which gives the radius of the circle based to the rate of change in the angle and the speed. Can someone help me solve this?


I'm really not sure if this is even the right section, but it has to do with angles and circles so I figured that this would be ok :)


Thanks in advance! If anything needs explaining more, please reply :)

Thanks
-c
 
From what I understand you're trying to implement circular motion. The player selects spaceship speed v (let's say 5px/s) and rotational speed (omega), let's say 10deg/s. Then the equation for circular motion is r=v/omega Omega, the angular velocity, has to be in radians per second, so you need to convert deg/s to rad/s and then when you apply the formula you'll get r, the radius of the circle, in pixels.

Hope this helps! Try to give more details if this is not what you're looking for. :)
 
Top