- Home /
How do you prevent colliders on bones from intersecting each other
I have some colliders on the bones of a mesh. I'm trying to prevent the arm part of the mesh from going through the body part of the mesh. Right now there doesn't seem to be anything stopping this movement. I know in a ragdolll this does not happen. If two colliders are already intersecting when the model is instantiated, do they automatically not collide?
Do you have any code to stop the items moving? If there isn't any physics (it's not a ragdoll) and there isn't any code you've written, intersections will occur because they aren't being stopped.
You're right, there are no rigidbody just colliders. $$anonymous$$aybe I'll use them as sensors and limit movement if they intersect.
Yeah - it's kinda tricky :) I've done that, but it was damn hard - also you can ray cast along the bones and see if you hit the body, then hold the previous bone rotation that did not cause a collision.
That way you don't need to use colliders on the limbs just the torso (though obviously it doesn't stop limb/limb collisions).
I'm not looking forward to it. Is there a way to use physics to rotate a joint?
Answer by angus1 · Jun 16, 2013 at 05:29 PM
Hi dansav, did you ever solve this. I'm facing the same issue.