Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ammo.js debug visualization is broken #4252

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rawnsley
Copy link
Contributor

@rawnsley rawnsley commented May 10, 2021

The /debug command used to enable the very useful ammo.js wireframes and other debug visualizations. This code relies on SharedArrayBuffer, which must now run in a secure context, without which you get the following console warning:

Physics debug rendering only available in browsers that support SharedArrayBuffers.

I'm not confident about the functional or security implications of making this available on a production server, but it looks safe to enable it on the local dev server by adding the required HTTP headers.

Alternative suggestions welcome.

┆Issue is synchronized with this Jira Task

…n requires a secure context. This change fixes it for the local dev server at least.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants