Playground DEMO: https://playground.babylonjs.com/#Z88Q4W#2
this is my first post in this forum. I started with bjs a few weeks ago and I love it!
I played around with the tutorials and while creating a small project I detected an issue with collision detection (intersects.Mesh).
The sphere's in my demo have different colors, representing their life count. In my example I want to detect the life of an object when being hit by the ShotCylinder and reduce the LifeCount by 1.
Now when I hit the object in my console it decreases the life constantly.
How can I stop the life from dropping ? (Maybe stop the collision, I only need the detection once) It seems like the collision seems to survive the dipose().
Maybe someone could help me. Hope my code readable, I am not a professional coder please keep that in mind!
Have a great day !