Author |
Collision Bug... |
Faustus Marshal Palestar
Joined: May 29, 2001 Posts: 2748 From: Austin, Texas
| Posted: 2001-12-12 20:21  
Well, fixed a pretty major bug with the collision detection. Firstly, ray to sphere collision was messed up, basically it would collide with the sphere even though the ray was going the other direction. This was causing some weirdness, especially since the beam weapons use this code alot.
The fix was 2 lines,
if ( v < d )
return false;
Also, added new code so that the collision detection will take in the radius of the ray. Basically, a fat-ray to sphere collision detection. This has basically fixed the problem with white lines on the navigation map where your ship may hit the outer part of the planet.
-Richard
_________________
|
Bumblebee Cadet Mercenaries of Andosia
Joined: May 31, 2001 Posts: 2256 From: Switzerland
| Posted: 2001-12-13 01:46  
you mean - now we can trust the white lines
no more
im not shure - shall i or not - LETS GO ---BOOM
that is (would be) great
[MoA] Bumblebee
Mercenaries of Andosia
MOD of the cleanest Forum in town
_________________
|