I’m making minecraft with babylon.js. I made object, then set mesh physics imposter.I also set player’s physics imposter as sphere imposter. However, they dont collide and player just goes through map.
map is made manually, like the code below.
newVertices.push(x,y-1,z);
newVertices.push(x,y,z);
newVertices.push(x+1,y,z);
newVertices.push(x+1,y-1,z);
Cube(b);//add vertices then create face etc.
I set to update physics imposter every time map model is updated(when block is placed or removed)
mesh.physicsImpostor = new BABYLON.PhysicsImpostor(mesh, BABYLON.PhysicsImpostor.MeshImpostor, {restitution:0}, scene);
How can I make these collide? Please help me. thanks.
No need to do whole project. Using a simplified map and player recreate the problem. In other words can you show that in a playground that mesh physics imposter is not working in a simplified situation?
I’m sorry but it is very hard to compress all important features of my project.
One thing I need to tell you is that PlaneImposter works.(but not what I wanted.).
@Immortality Can you share what babylon methods you are using to create the map. If you can have a playground that constructs a triangle the same way, that would be helpful.