Trigonometric functions- get angle from player to point.
#10

I dont know if i'm correct, but i'm not sure that u need those cos and sin functions for this.
I built a pet system and when the pet attacks, it chases the player and always facing him.
I just took the target player's angle subtracted it form 180 (180-the target's angle). Then i applied the outcome angle on the pet.
yom, u replied to my question on my pets topic with the 180 degrees thing..
So y won't it work on this script? just subtract the outcome of the 180 degrees thing from the player's facing angle, and thats how much he need to turn... no?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)