hey,
i dont math very well. and i'm coming to you guys today for some help. it must be pretty simple, i just dont get it.
first question :
what i'm trying to archieve : checking if angle is towards a point
i have 2 position pos1 and pos2 from the player and the attacker.
i have the angle for the player ( in radiant coming from the ctrl. as a flt [angle.x] )
i want to know if my player faces the attacker ( with a 90° margin ).
how can i archieve this mathematicaly ?
second question :
what i'm trying to archieve : get a line between my 2 points, and count 2 meters from my second point on that line
this one is under the same idea.
i have my player pos and the targetplayer pos, i have the player angle as well.
i want to push the targetplayer back 2m in the same direction from the player angle.
Would appreciate any helps,
Thanks !