Follow cam (#107)
- follow cam in replay viewer - world text with halo - fixed sensor crash - sensor visitors must now be convex
This commit is contained in:
parent
781673be80
commit
3fc20f5b45
27 changed files with 7450 additions and 127 deletions
|
|
@ -1429,20 +1429,20 @@ void b3World_Draw( b3WorldId worldId, b3DebugDraw* draw, uint64_t maskBits )
|
|||
const char* name = b3FindName( &world->names, body->nameId );
|
||||
if ( name != NULL )
|
||||
{
|
||||
draw->DrawStringFcn( p, name, b3_colorOrange, draw->context );
|
||||
draw->DrawStringFcn( p, name, b3_colorWhite, draw->context );
|
||||
}
|
||||
}
|
||||
|
||||
if ( draw->drawMass && body->type == b3_dynamicBody )
|
||||
{
|
||||
b3Vec3 offset = { 0.1f, 0.1f, 0.1f };
|
||||
b3Vec3 offset = { 0.05f, 0.05f, 0.05f };
|
||||
|
||||
b3WorldTransform transform = { bodySim->center, bodySim->transform.q };
|
||||
draw->DrawTransformFcn( transform, draw->context );
|
||||
b3Pos p = b3TransformWorldPoint( transform, offset );
|
||||
|
||||
char buffer[32];
|
||||
snprintf( buffer, 32, " %.2f", body->mass );
|
||||
snprintf( buffer, 32, "%.2f", body->mass );
|
||||
draw->DrawStringFcn( p, buffer, b3_colorWhite, draw->context );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue