Replay fixes (#17)
Fixes to work with our game. Replay fixes and improvements. Removed shape names (save memory). B3_DEFAULT_CATEGORY_BITS is now UINT64_MAX to make selection easier.
This commit is contained in:
parent
5c9b516486
commit
0c8ef46931
51 changed files with 5653 additions and 3853 deletions
15
src/core.c
15
src/core.c
|
|
@ -36,7 +36,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
// This allows the user to change the length units at runtime
|
||||
float b3_lengthUnitsPerMeter = 1.0f;
|
||||
static float b3_lengthUnitsPerMeter = 1.0f;
|
||||
|
||||
void b3SetLengthUnitsPerMeter( float lengthUnits )
|
||||
{
|
||||
|
|
@ -49,6 +49,19 @@ float b3GetLengthUnitsPerMeter( void )
|
|||
return b3_lengthUnitsPerMeter;
|
||||
}
|
||||
|
||||
static float b3_stallThreshold = FLT_MAX;
|
||||
|
||||
void b3SetStallThreshold(float seconds)
|
||||
{
|
||||
B3_ASSERT( b3IsValidFloat( seconds ) && seconds > 0.0f );
|
||||
b3_stallThreshold = seconds;
|
||||
}
|
||||
|
||||
float b3GetStallThreshold(void)
|
||||
{
|
||||
return b3_stallThreshold;
|
||||
}
|
||||
|
||||
static int b3DefaultAssertFcn( const char* condition, const char* fileName, int lineNumber )
|
||||
{
|
||||
printf( "BOX3D ASSERTION: %s, %s, line %d\n", condition, fileName, lineNumber );
|
||||
|
|
|
|||
Loading…
Reference in a new issue