- here you are not using Gizmos but a helper mostly used with them so it is fine but it might have to many limitations for your case.
- you would need to rebuild what the function does internally, basically parenting all the element to a parent simple mesh used to “hijack” picking preventing expensive raycast on complex mesh. It helps a bit with moveWithCollision as you could also use it as the main collider for the other object.
- moveWithCollision relies on ellipsoid and ellipsoidOffset of the mesh to detect collision with the other meshes: Babylon.js docs.
1 Like