Difference between revisions of "Thread:Talk:Oculus/Movement/reply (7)/reply (3)"

From Robowiki
Jump to navigation Jump to search
m (Reply to Bullet Shielding)
 
m
 
Line 2: Line 2:
  
 
I also tried to take how good the intersection into account (etc. if the intersection is below 0.1, also move), but no improvement at all.
 
I also tried to take how good the intersection into account (etc. if the intersection is below 0.1, also move), but no improvement at all.
 +
 +
Therefore I think it's not because 1e-16 caused the miss — even 0 is not enough, when the angle is below 1e-14, the game just ignores the intersection.

Latest revision as of 12:34, 1 September 2017

Yes, this is crucial. But in my experience, when I set the threshold to 1e-14, it works pretty well — If the angle between your bullet and their bullet is below 1e-14, move. Else, don't move.

I also tried to take how good the intersection into account (etc. if the intersection is below 0.1, also move), but no improvement at all.

Therefore I think it's not because 1e-16 caused the miss — even 0 is not enough, when the angle is below 1e-14, the game just ignores the intersection.