MrBehemoth
Senior Member
Posts: 408
Threads: 19
Joined: Feb 2014
Reputation:
40
|
RE: Error expected method or property
Say for example you had a spooooky statue that turned to face the player, you might want to know what angle it needs to turn to. The x and z co-ords of the player and the x and z co-ords of the statue make up the adjacent and opposite sides of a right angled triangle. You could then use trig to work out the angle that the statue should be at.
Or maybe you want to know when the player is within a certain range of angles, e.g., in the statue's line of sight.
That sort of thing.
(You could also use square root and good old Pythagoras to work out the distance.)
|
|
02-08-2015, 07:03 PM |
|