Draw sleep velocity (#49)

- draw sleep velocity for debugging
- added back shape names with B3_SHAPE_NAME_LENGTH
- zup command line option
This commit is contained in:
Erin Catto 2026-07-05 00:33:00 -07:00 • committed by GitHub
commit 540ea387b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 554 additions and 132 deletions

View file

@ -295,6 +295,25 @@ int b3FetchAddMeshDumpIndex( void )
return result;
}
void b3StrCpy(char* dst, int size, const char* src)
{
B3_ASSERT( size > 0 );
if ( src != NULL )
{
#if defined( _MSC_VER )
strncpy_s( dst, size, src, size - 1 );
#else
strncpy( dst, src, size - 1 );
dst[size - 1] = 0;
#endif
}
else
{
memset( dst, 0, size );
}
}
void b3WriteBinaryFile( void* data, int size, const char* fileName )
{
if ( data == NULL || size <= 0 || fileName == NULL )