19-09-2023, 05:18 PM
(18-09-2023, 06:14 AM)josemendez Wrote: You need to parent the distance field colliders to each individual bone in the skeleton, otherwise there's no way it can move with it. This is how colliders for moving characters are usually done in games: by parenting simple colliders to each bone, instead of using a single deformable mesh collider (which would be extremely costly, so typically not supported in game engines).
Many Tks Jose,
I'm struggling with the distance fields,
I'm aware that the Obi collider only works if the mesh, or in this case, the joint has and native collider, right? So I use capsule colliders in each joint and create an Obi collider:
With this setup the dynamics works and the mesh collides with movement, but, as the manual says, the capsule colliders have low resolution, so I create a distance field in this way:
1. Right-click in the assets folder, and create the Obi Distance Field.
2. In the input field, I put the forearm mesh and generated.
Then I go to the forearm joint, in the Obi Collider and add the distance field.
That was when my setup fails and the mesh passes through the arm.