05.01.2017, 02:12
Hello.
I'm probably too stupid to know how can I calculate a coordinates with the player's facing angle.
I mean, I wante to create 3-4 objects and elevate it every update. I'll use a loop and get the right coordinates. The problem is I don't know where I can modify it for the player's facing angle. (My english suck so much, sorry).
Where size is the distance between first & second object.
I'm probably too stupid to know how can I calculate a coordinates with the player's facing angle.
I mean, I wante to create 3-4 objects and elevate it every update. I'll use a loop and get the right coordinates. The problem is I don't know where I can modify it for the player's facing angle. (My english suck so much, sorry).
PHP код:
z += size * floatcos(i, degrees);