29.10.2014, 04:57
(
Последний раз редактировалось denNorske; 29.10.2014 в 06:46.
)
Well, sorry about my bad definitions above, yea I was looking for something like the angle of the player (a),
![](http://i.imgur.com/Al4QQn6.jpg)
Basically what I was trying to say![Smiley](images/smilies/smile.png)
I need the angle in order to for example change the heading of an object according to player B's position.
EDIT 1:
This code, ain't that just figuring out the x's & y's in the players heading direction? or did i misunderstand that aswell?
Sorry, i might need to read some maths here!
Edit 2:
https://www.youtube.com/watch?v=QsVh-nFg-Vk > That is basically showing an object rotating itself towards the player. How to get the heading? I am interested in knowing how you can get the heading towards a player (same concept)
![](http://i.imgur.com/Al4QQn6.jpg)
Basically what I was trying to say
![Smiley](images/smilies/smile.png)
I need the angle in order to for example change the heading of an object according to player B's position.
EDIT 1:
Quote:
Not sure if this is what you are looking for..
pawn Код:
|
Sorry, i might need to read some maths here!
Edit 2:
https://www.youtube.com/watch?v=QsVh-nFg-Vk > That is basically showing an object rotating itself towards the player. How to get the heading? I am interested in knowing how you can get the heading towards a player (same concept)