Hi Jay, Could you please provide a complete minimal code that shows the problem? By the way, note that the two cases you list below are not exactly the same, as the cube generated by the first one will have dimensions 2x2x2.
--Radu From: [email protected] <[email protected]> On Behalf Of Jay Jay Sent: Friday, January 17, 2025 6:14 PM To: ProjectChrono <[email protected]> Subject: [chrono] Issue with unexpected motion in ChBodyEasyMesh with Collide Enabled Hi everyone, I’m encountering an issue while working with rigid body collisions in Project Chrono. I’ve created two cubes with a certain distance apart using the following code: auto box = chrono_types::make_shared<ChBodyEasyMesh>( GetChronoDataFile("models/cube.obj"), // mesh filename 500, // density (kg/m^3) true, // automatically compute mass and inertia true, // visualize? true, // collide? mat, 0.001 // mesh sweep sphere radius ); Even though I’ve set gravity to 0 and no external forces are applied, the cubes experience rotation and translation over time when collide is enabled. If I disable collide, the cubes remain stationary. Clearly, the issue is related to the collision behavior. Interestingly, when I create the cubes using ChBodyEasyBox with the same gravity and collision enabled, they remain stationary as expected: auto box = chrono_types::make_shared<ChBodyEasyBox>( 3.96, 2, 4, // dimensions (x, y, z) 500, // density (kg/m^3) true, // visualization? true, // collision? mat ); Both cubes in this case are stable with no unexpected motion. Could anyone help me understand why the behavior is different between ChBodyEasyMesh and ChBodyEasyBox? Is there something specific about the collision setup for ChBodyEasyMesh that I’m missing? Thanks! Best regards, Jay -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion visit https://groups.google.com/d/msgid/projectchrono/941afeb8-5f8a-4268-b7f9-aba820c8e55en%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/941afeb8-5f8a-4268-b7f9-aba820c8e55en*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!IVC2bkio_D42i715e6eX13L0MrQbVKMT-holqOHK1GCjTOmujlNEMWF6KK9wHI9Bz68fYXDtDUXOWTawBcpUgg$>. -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/projectchrono/CH3PPF46CDC218530FEDBD8FDC6B7321231A7E42%40CH3PPF46CDC2185.namprd06.prod.outlook.com.
