Calculate Angle to look at person
#4

Find some function which calculates the angle between 2 points, then get the angle between player A and player B and check if the angle is equal to player A's facing angle. If it is so - do what u want.

Edit: Oh, you wanted to SET the facing angle? So calculate the angle and set the other player's facing angle to that. lol

You might need to make it OPPOSITE angle, so just do angle -= 180.0.
Reply


Messages In This Thread
Calculate Angle to look at person - by Trooper[Y] - 16.07.2010, 18:20
Re: Calculate Angle to look at person - by Dudits - 16.07.2010, 18:26
Re: Calculate Angle to look at person - by Trooper[Y] - 16.07.2010, 18:31
Re: Calculate Angle to look at person - by Finn - 16.07.2010, 18:34
Re: Calculate Angle to look at person - by Trooper[Y] - 16.07.2010, 19:14
Re: Calculate Angle to look at person - by Kar - 16.07.2010, 19:17
Re: Calculate Angle to look at person - by Finn - 16.07.2010, 19:22
Re: Calculate Angle to look at person - by Joe_ - 16.07.2010, 19:24
Re: Calculate Angle to look at person - by Finn - 16.07.2010, 19:29
Re: Calculate Angle to look at person - by Joe_ - 16.07.2010, 19:32

Forum Jump:


Users browsing this thread: 1 Guest(s)