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:
Erin Catto 2026-07-29 22:14:26 -07:00 • committed by GitHub
commit 3fc20f5b45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 7450 additions and 127 deletions

View file

@ -11,6 +11,7 @@
// FLY (right mouse held, no Alt)
// right-drag : FPS look (yaw/pitch the view direction)
// WASD : translate eye along view forward/right at m_speed
// QE : translate eye along world down/up at m_speed
// scroll : tune m_speed
//
// Always
@ -112,11 +113,12 @@ public:
{
m_pivot = pivot;
}
void SetTarget( b3Pos target )
{
m_pivot = target;
}
// Aim at a point given in simulation space: length units and the simulation up axis, mapped
// into the display frame the pivot lives in, then the transform refreshed. Follow cams read
// positions straight from the world, so they land here. Counterpart to DrawOrigin, which maps
// the eye back the other way. SetPivot takes a point already in display space.
void SetTarget( b3Pos target );
// Frame an AABB: keep current yaw/pitch, move pivot to the AABB center,
// and refit radius so the AABB fits in view at the current FOV+aspect.
@ -252,4 +254,6 @@ public:
bool m_aDown = false;
bool m_sDown = false;
bool m_dDown = false;
bool m_qDown = false;
bool m_eDown = false;
};