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

Physics body handle mapping bugfix #648

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

NateTheGreatt
Copy link
Contributor

@NateTheGreatt NateTheGreatt commented Jul 10, 2023

Rigid bodies are accessed by reference node.physicsBody.body, while colliders are separately accessed via the handleToEid mapping.

Physics body adds/removes were involving rigidbody handles in the handleToEid mapping, which caused disposals to delete colliders belonging to other objects.

@github-actions
Copy link

🚀 Deployed on https://deploy-preview-648--thirdroom.netlify.app

@robertlong robertlong merged commit 01bc731 into main Jul 11, 2023
4 checks 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.

2 participants