Ghost collision improvements (#61)

- flag to disable hull-mesh speculative collision
- faster atomics #55 
- fix triangle vs hull logic
- fix #58 and #59
- improved shadows in samples app, a bit more expensive
This commit is contained in:
Erin Catto 2026-07-08 23:53:06 -07:00 • committed by GitHub
commit ef8ef0187a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 16639 additions and 12086 deletions

View file

@ -2367,9 +2367,9 @@ public:
float length = b3Length( d );
assert( b3AbsFloat( length - output.distance ) < 10.0f * FLT_EPSILON );
b3Vec3 n = b3Normalize( d );
assert( b3AbsFloat( n.x - output.normal.x ) < 100.0f * FLT_EPSILON );
assert( b3AbsFloat( n.y - output.normal.y ) < 100.0f * FLT_EPSILON );
assert( b3AbsFloat( n.z - output.normal.z ) < 100.0f * FLT_EPSILON );
assert( b3AbsFloat( n.x - output.normal.x ) < 0.0001f );
assert( b3AbsFloat( n.y - output.normal.y ) < 0.0001f );
assert( b3AbsFloat( n.z - output.normal.z ) < 0.0001f );
}
m_simplexCount = output.simplexCount;