Hi,
I am simulating a use case where a particle is falling on the ground and get collided with the floor body.
For this, if I use 3D cube (ChTriangleMeshConnected) as the mesh for particle body, the collision is detected but if I use 2D Quad (
ChTriangleMeshSoup) for particle then collision is not being detected and particles passes through the floor.
My RandomGenerate funciton is like this:
virtual std::shared_ptr<chrono::ChBody> RandomGenerate(chrono::ChCoordsys<> mcoords) override {
auto mbody = chrono_types::make_shared<chrono::ChBody>();
mbody->SetCoord(mcoords);
mbody->GetCollisionModel()->AddTriangleMesh(material, triMeshSoup, true, true, mcoords.pos, mcoords.rot, 0.01);
return mbody;
};
Please let me know if anything is wrong in this or if there is any setting or limitation to use 2D mesh.
Thanks & Regards,
Vivek