Page 1 of 1

What's the best way to pin a rigid body to another rigid body?

Posted: Wed Jul 03, 2019 5:50 pm
by s_kohan
I have a simulation where the character model is a capsule rigid body which is moved by applying forces. I want to have another body which represents the hit box for a weapon which moves relative to the character body. I.e. imagine a sword blade which moves along a set path relative to the character, but that entire path moves and rotates with the character as it moves in world space.

What's the best way to accomplish this? I am thinking I could use a kinematic object and just update it after the character moves each timestep, but is there a better tool for this? Maybe I can use constraints?

Re: What's the best way to pin a rigid body to another rigid body?

Posted: Thu Jul 04, 2019 4:37 pm
by xissburg
I think using a kinematic object makes more sense. You could animate it in object space and then multiply its transform by the capsule's transform to calculate the final state of the hit box object.