0 Replies - 3203 Views - Last Post: 29 November 2012 - 01:20 AM

problem:Calculate an poisition by angle.

Posted 29 November 2012 - 01:20 AM

Hello all,
I build a "worms" game.
In the start of the develop,I did that the player would flate the terrain below him.
As the game develops I want the player to have the ability to move.
So I calculate the angle I need to rotate him relatively to the terrain.
(I got an array with all the terrain heights and the player's width is 40).