I want to make a Spaceship with Physic and give it a speedlimit:

<img src="https://dl.dropbox.com/u/34146606/Question.PNG" border="0">

**Accelerate:**

If Velocity > Max_Speed Then

**Get Angle of this Motion**:

Current_X_Velocity + Sin ( ShipAngle ) * Acceleration * dt

Current_Y_Velocity - Cos ( ShipAngle ) * Acceleration * dt

Use the Angle:

**Set X_Velocity**: Sin (MotionAngle) * Old_Velocity

**Set Y_Velocity**:-Cos (MotionAngle) * Old_Velocity

Endif

Here is the capx:

(at update_Spaceship/Apply_Input marked with comments)

(Use Arrow Keys and Ctrl)

Hope you can help me with sin/cos and the math ;)

Thank you