Skip to content

feat: enable physics on-demand for ThirdPersonControl#245

Merged
marco-ponds merged 2 commits intomasterfrom
feat/third-person-physics-on-demand
Apr 17, 2026
Merged

feat: enable physics on-demand for ThirdPersonControl#245
marco-ponds merged 2 commits intomasterfrom
feat/third-person-physics-on-demand

Conversation

@marco-ponds
Copy link
Copy Markdown
Collaborator

Remove the silent camera fallback from ThirdPersonControl — a target element is now required, with a clear error if missing.

When physicsEnabled is requested but global physics is off, lazily initialise the physics worker and retroactively add any entities that had enablePhysics() called before the worker existed. Resolve ammo.js via MAGE_ASSETS_BASE_URL so the path works identically in local preview and production.

marco-ponds and others added 2 commits April 17, 2026 23:56
Remove the silent camera fallback from ThirdPersonControl — a target
element is now required, with a clear error if missing.

When physicsEnabled is requested but global physics is off, lazily
initialise the physics worker and retroactively add any entities that
had enablePhysics() called before the worker existed.  Resolve ammo.js
via MAGE_ASSETS_BASE_URL so the path works identically in local preview
and production.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@marco-ponds marco-ponds merged commit df7037c into master Apr 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant