private void updateMovementVector ( ) { dirX = ( float ) Math . sin ( Math . toRadians ( ang ) ) ; dirY = ( float ) - Math . cos ( Math . toRadians ( ang ) ) ; }
Update the direction that will be moved in based on the current angle of rotation