- #1
GWilde
- 3
- 0
I am programming an addon for a space game/simulation (Kerbal Space Program) and I am looking for some help with a bit of physics.
The part I need a little help with is related to attitude control. If the ship is rotating, is there a mathematical way to calculate when it needs to begin to decelerate rotation to stop facing a certain point? Say I know its current angular velocity and its max angular acceleration?
Ex.
For example ships starts facing direction 1. It begins accelerating its rotation towards directions 2. Then, at the specific calculated point it stops accelerating and begins decelerating so that it stops at direction 2.
In the code I was thinking that I would repeatedly check if at its current angular velocity, if it began decelerating would it stop in time.
Thanks for any help.
The part I need a little help with is related to attitude control. If the ship is rotating, is there a mathematical way to calculate when it needs to begin to decelerate rotation to stop facing a certain point? Say I know its current angular velocity and its max angular acceleration?
Ex.
For example ships starts facing direction 1. It begins accelerating its rotation towards directions 2. Then, at the specific calculated point it stops accelerating and begins decelerating so that it stops at direction 2.
In the code I was thinking that I would repeatedly check if at its current angular velocity, if it began decelerating would it stop in time.
Thanks for any help.