- Home /
How to use Physics.IgnoreCollision for multiple objects / toggling collisions for multiple, specific objects?
Hi, I'm working on a game, where the player picks up trash from Trash Cans, and dumps it into Trash Trucks. There is an animation that plays, once the player brings a Trash Can up to a Trash Truck, that gets triggered with a trigger box collider. It parents the Trash Can to the Trash Truck, and plays the animation. The only problem is, it seems like there might be a collision issue, or something like that, as it causes the Trash Truck to tip over, and fly around / act crazy. I'm trying to toggle collisions, so that the Trash Can's collisions are not detected by the Trash Truck only, and everything else still collides with the Trash Can's colliders, and for it to only do this while it is parented to the Trash Truck. I have a specific Empty GameObject on both the Trash Trucks and the Trash Cans that contain most of the colliders. How can I correctly ignore collisions, for just the parented Trash Cans? If anyone needs any more information, please, let me know! Thanks!
Your answer
Follow this Question
Related Questions
OnCollisionStay only detects collisions after a secondary collision 0 Answers
Mouse Movement with physics 1 Answer
I got a problem with using the OverlapseSphere() method inside a different PhysicsScene 1 Answer
How to Clamp A RigidBody to the Ground/ Moving a RigidBody Along the Ground 0 Answers
Vibrating GameObjects 0 Answers