Gianni,
If you are interested in collisions of your internal components with the inside of the box, then utils::CreateBoxContainer allows creating a closed box (i.e. with 6 walls); see its last argument (optional, default: false). No need to create a separate body for the “lid” and connect it through a weld joint (which would only add additional states and constraints).
Otherwise, the easiest way is to simply create one solid box and ignore collisions with any of the internal components by using collision families (set the box in one collision family and all internal components in a different one, then disable any collisions between the two families). See ChCollisionModel::SetFamily and ChCollisionModel::DisallowCollisionWith.
Of course, all of this assumes your internal components carry collision geometry. Otherwise, you do not need to do anything special.
--Radu
--
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
projectchron...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/projectchrono/77e16914-2654-4f12-8f9b-b1f5a1ca0c94n%40googlegroups.com.