Disclaimer: When it comes to maths and me, the wheels going but the hamsters dead.
I'm thinking it's a signed/unsigned problem. Let's imagine we have our missiles bearing in x,y,z. As it gets closer to its target, these reduce until they're on or abouts 0,0,0.
Of the update code means that a collision is detected after it hits it's destination, with signed numbers, they'd be something like -4, -8, -10. Probably still inside the hit box and boom...
If someone did something silly and used unsigned (can't have negative numbers), the values jump to the other end of the scale, potentially:
2093820938,203283228,230230820382
Which may well explain why the missile suddenly goes "I have to be over there now", which, by sods law is a teammate or ice-cream van.
Just a thought. Probably wrong.
I'm thinking it's a signed/unsigned problem. Let's imagine we have our missiles bearing in x,y,z. As it gets closer to its target, these reduce until they're on or abouts 0,0,0.
Of the update code means that a collision is detected after it hits it's destination, with signed numbers, they'd be something like -4, -8, -10. Probably still inside the hit box and boom...
If someone did something silly and used unsigned (can't have negative numbers), the values jump to the other end of the scale, potentially:
2093820938,203283228,230230820382
Which may well explain why the missile suddenly goes "I have to be over there now", which, by sods law is a teammate or ice-cream van.
Just a thought. Probably wrong.
Comment