- Home /
Colliding with multiple objects
In my game, I have an object that is a trigger with a rigidbody attached. using oncollisionenter, It prints a message to the console when touching another object with a rigidbody (not a trigger). However, when I try to touch another object to the trigger while the first object is still touching nothing happens. Is there any fix for this? thanks.
When working with triggers, you should probably use OnTriggerEnter.
Answer by Xtro · Aug 26, 2013 at 02:04 PM
second object needs to have a rigidbody on it too. If it's not a physics object, set iskinematic=true on rigidbody.
that is because, colliders without rigidbodies considered as static and they can't move. even if you move them, they won't trigger any event.
Can you please mark the correct answer if you fixed that problem?
Your answer
Follow this Question
Related Questions
get only one colliding body 3 Answers
OnTriggerEnter not called on rigidbody? 2 Answers
Avoid Player bouncing when colliding with objects 3D 1 Answer
How do i stop XR rig from moving rigidbodies 0 Answers
Why the npc character walking strange when using a Rigidbody and Is Kinematic on enabled ? 1 Answer