I am trying to make a 3D game with Babylonjs, and I am currently working on enemies’ movements and physic. I struggle to use the moveWithCollision method on my “avatar” class, extending the Mesh class.
Setting the avatar’s physic with an Ellipsoid doesn’t seem to work as no collisions are detected and avatars go through each other. If I try to set the checkCollisions attribute of a sub mesh to true instead, the avatar doesn’t follow the direction given at all.
Here’s a playground that sums up my problem:
How should I proceed so my avatars work with collisions and all related things and move as expected with the moveWithCollisions method?
Thanks a lot for reading me!