Help with Collision Bodies
Posted: Thu Jan 16, 2025 10:35 am
Hello,
I am in the early stages of learning OpenSim modeling for my upcoming degree program and I am a bit confused about setting up object collision in Creator.
I have downloaded a head/neck model (Musculoskeletal Model of Head and Neck Suitable for Dynamic Simulations) from the project database that I was hoping to adapt to my work. Currently I am setting the model in a supine position with the head tilted up to an elevated position (chin-to-chest) and I would like to create contact geometry between the skull and the floor. I have created a ContactHalfSpace for the ground and a ContactSphere for the skull (placed roughly at the geometric center and sized to fit the skull as closely as possible). Following the example "2. Make a Bouncing Block" found in the OpenSim Creator documentation, I added the contact geometries to a HuntCrossleyForce with the default values. Upon simulating the environment, the skull (and its attached contact geometry) passes through the ground ContactHalfSpace. My expectation was that the skull would impact the ground and, after brief restitution, come to rest on the plane. At the very least, this is what I would like to achieve with a simple simulation.
If I have missed a step in the process of defining contact geometry or have otherwise made a mistake somewhere in this process, I would appreciate any help with troubleshooting this.
Thank you!
Andrew Bossert,
Boise State University
I am in the early stages of learning OpenSim modeling for my upcoming degree program and I am a bit confused about setting up object collision in Creator.
I have downloaded a head/neck model (Musculoskeletal Model of Head and Neck Suitable for Dynamic Simulations) from the project database that I was hoping to adapt to my work. Currently I am setting the model in a supine position with the head tilted up to an elevated position (chin-to-chest) and I would like to create contact geometry between the skull and the floor. I have created a ContactHalfSpace for the ground and a ContactSphere for the skull (placed roughly at the geometric center and sized to fit the skull as closely as possible). Following the example "2. Make a Bouncing Block" found in the OpenSim Creator documentation, I added the contact geometries to a HuntCrossleyForce with the default values. Upon simulating the environment, the skull (and its attached contact geometry) passes through the ground ContactHalfSpace. My expectation was that the skull would impact the ground and, after brief restitution, come to rest on the plane. At the very least, this is what I would like to achieve with a simple simulation.
If I have missed a step in the process of defining contact geometry or have otherwise made a mistake somewhere in this process, I would appreciate any help with troubleshooting this.
Thank you!
Andrew Bossert,
Boise State University