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 projectchrono+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/projectchrono/941afeb8-5f8a-4268-b7f9-aba820c8e55en%40googlegroups.com.

Reply via email to