In the above code, you would probabl add the sin(angle) effect onto the Y co-ord.
Another way to do this, would be to have waypoints and make the entity follow a curving waypoint system.
You could generate the waypoints, based on the entity's position. When it needs to turn, generate a waypoint system. Read it in from data statements or something.
Another way to do this, would be to have waypoints and make the entity follow a curving waypoint system.
You could generate the waypoints, based on the entity's position. When it needs to turn, generate a waypoint system. Read it in from data statements or something.