Nexis Make a 2D version first. On each frame, read the joy axes and put them as components into a Vector2
. Normalize this vector and that's your movement direction. Rotate the object by the angle of this vector (returned by Vector2::angle()
) and move it along this vector every frame if either of joy axes is nonzero.
There's more finesse that can be added but those are the basics.