Quantcast
Channel: BEPUphysics
Viewing all articles
Browse latest Browse all 243

Created Issue: Dependency free fork - ray intersects method issue [12]

$
0
0
In the dependency free fork in MathExtensions/Ray.cs, the ray intersects method returns null in some situations where it shouldn't, which was causing faulty character and vehicle physics.

Upon investigating, it turns out there's a check where there is a minus symbol in front of 'boundingBox.Min.Z'. Removing the minus symbol fixes the issue :)

...
if (Math.Abs(Direction.Z) < Toolbox.Epsilon && (Position.Z < -boundingBox.Min.Z || Position.Z > boundingBox.Max.Z))
{ ...

Viewing all articles
Browse latest Browse all 243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>