GooTechnologies/goojs

TriggerEnter stops working after a few events

Opened this issue · 0 comments

Reported by bunzaga.

Any ideas regarding this old demo: https://create.goocreate.com/edit/db361deed21f4ad8b5630ffb11d79fc4.scene I tried changing it to use onTriggerStay, but it still does the same thing. It behaves like something in the physics engine crashes, and just stops responding to the cubes over time.

Basically, if you move the camera so the smaller cubes are inside of the sphere, then hold down the left mouse button, the cubes should be picked up and try to stay in the center of the sphere. When you let go of the left mouse, they should drop like normal. If you continuously pick them up and drag them around, suddenly they just stop reacting to the trigger events.

https://c1.goote.ch/db361deed21f4ad8b5630ffb11d79fc4.scene Here is the demo, so you don't need to open and build, etc.

Here's a little (unlisted) video to help: https://youtu.be/91xojYiY67g