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
Script Help Focus Distance Debug Variable?
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#16
RE: Focus Distance Debug Variable?

I expected someone to improve -or adapt- the code to their needs but you just solved it all. :0
Maybe you wanna make another function too to get the angle? In a regular 0 to 360 range. I was thinking about it but still I didn't make any tests. I know it should be simple.
Or maybe give us a hint on how would you approach to solve it :>

It is true my code would return a wrong value if you compare objects in opposite sides from the center, I just thought it would be improbable that someone would do that because of the dimensions of an Amnesia level and how it evolves when it grows.
I mean you find yourself always comparing similar numbers like x33780 with x33712. But yeah, mine works and it's very precise, but is not the correct way because of that. :]

rep++

(This post was last modified: 12-29-2014, 11:17 PM by Daemian.)
12-29-2014, 11:12 PM
Find


Messages In This Thread
RE: Focus Distance Debug Variable? - by Daemian - 12-20-2014, 03:40 PM
RE: Focus Distance Debug Variable? - by Mudbill - 12-20-2014, 09:34 PM
RE: Focus Distance Debug Variable? - by Mudbill - 12-20-2014, 10:09 PM
RE: Focus Distance Debug Variable? - by Daemian - 12-27-2014, 04:22 PM
RE: Focus Distance Debug Variable? - by Daemian - 12-29-2014, 11:12 PM



Users browsing this thread: 1 Guest(s)