In my game I am using spheres with physics as like a teleport mechanism. Here is the playground: https://www.babylonjs-playground.com/#Z0QW21#29
An issue I am having is that the shot spheres can’t collide with each other, and on other thing. But first, here is a rundown of the playground.
Use the mouse to look around and left click to shoot. You will be teleported to where the ball landed. Line 98 creates the ball, and the pewpew function after it is called when you left click. It restates the variable, so it makes another ball. At lines 260-268 it detects when the ball hits the ground and destroys the ball, and teleports you to where it landed.
Ok. so the first issue is look straight down and spam left click. I mean fast! eventually some balls will bunch up, move slow, not collide with each other, and don’t teleport you.
The second is that only the last ball can teleport you. shoot one straight and then shoot one forward. only the last ball will teleport you. Can this not happen.
Thanks for any help.