- /^
- Original / |
- acceleration / |
- vector / |
- / |
- / | Y vector
- / |
- Start / * |
- position -> X------->|
- X vector
- * = Angle of ship measured from x axis
- Given an angle for our direction from 0 to 365, we can determine the scale_x and scale_y variables. There are various ways to do this, but an easy way (not optimized) is to use trig:
- scale_x = cos(angle);
- scale_y = sin(angle);