-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Removing physics object unlinks visuals and physics #385
Comments
After digging through the source, I found that this is because all of my enable3d objects have the default name 'Scene', which is copied to the enable3d/packages/ammoPhysics/src/physics.ts Lines 167 to 172 in fb54b0e
It seems like object id should always be used here for identification. |
Describe the bug
Removing an object from the physics scene disconnects the visual representation of objects from its physics. I am using ammo physics.
Code:
Issue:
https://github.com/enable3d/enable3d/assets/10288753/4b19302d-bbae-479d-9951-849f31f59832
INTENDED BEHAVIOR can be observed when only deleting the scene object, not the physics object:
https://github.com/enable3d/enable3d/assets/10288753/62bb2605-14c2-42b6-b09e-6396fbfe4c17
The text was updated successfully, but these errors were encountered: