Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error expected method or property
MrBehemoth Offline
Senior Member

Posts: 408
Threads: 19
Joined: Feb 2014
Reputation: 40
#25
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
Find


Messages In This Thread
Error expected method or property - by Icaab2608 - 01-31-2015, 08:34 PM
RE: Error expected method or property - by MrBehemoth - 02-08-2015, 07:03 PM



Users browsing this thread: 1 Guest(s)