Bug fixes and minor features (#2)
- API to query compounds directly. - Fix some uninitialized stuff (thanks MSAN). - Fix for store impulses on overflow. - AABB margin reduced for small shapes - body contact recycling option - angular threshold for contact recycling - reduce AABB margin on smaller shapes - fix for hull vs tri when axis aligned - fully locked rotation uses zero inverse inertia
This commit is contained in:
parent
d7816a0a58
commit
7216822064
50 changed files with 759 additions and 360 deletions
13
src/solver.h
13
src/solver.h
|
|
@ -259,18 +259,9 @@ typedef struct b3StepContext
|
|||
char padding3[64];
|
||||
} b3StepContext;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
void b3Solve( b3World* world, b3StepContext* stepContext );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
B3_INLINE b3Softness b3MakeSoft( float hertz, float zeta, float h )
|
||||
static inline b3Softness b3MakeSoft( float hertz, float zeta, float h )
|
||||
{
|
||||
if ( hertz == 0.0f )
|
||||
{
|
||||
|
|
@ -307,7 +298,7 @@ B3_INLINE b3Softness b3MakeSoft( float hertz, float zeta, float h )
|
|||
// In all cases:
|
||||
// massScale + impulseScale == 1
|
||||
|
||||
return B3_LITERAL( b3Softness ){
|
||||
return ( b3Softness ){
|
||||
.biasRate = omega / a1,
|
||||
.massScale = a2 * a3,
|
||||
.impulseScale = a3,
|
||||
|
|
|
|||
Loading…
Reference in a new issue