Collision not detected while using 2D mesh instead of 3D

18 views
Skip to first unread message

Vivek Chourasiya

unread,
Jun 14, 2023, 7:36:07 AM6/14/23
to ProjectChrono
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
Reply all
Reply to author
Forward
0 new messages