- Home /
Is that possible to get contacts when OnTriggerEnter
The OnCollisionEnter do not meet my need,becuase When the CollisionEnter, the box will be bounced off. So I need to find all the contacts from the OnTriggerEnter function, is there anyway to achieve it? excuse me for my bad english .
You may want to rephrase. Do you mean when the box is close to an entity it bounces off? If so, I don't understand the question, why not just use OnTriggerEnter as you say? All entities entering the OnTriggerEnter can be recorded in a script. What are you using the script for ? Is it a big secret? :D
Thanks for reply, it's not a secret, just too hard to translate my $$anonymous$$d to english. I want to know all the CONTACT POINTS when it enter collision, and do not hope the box bounces off. so I want to get all the CONTACTS when OnTriggerEnter OR make the box do not bounces off when OnCollisionEnter. :)
It's not possible unless you are talking about more than one object (more than one collider). you can set more than one collider on an object, but it covers an area still (like set a collider on a hand + foot + leg for instance).. getting pixel perfect collisions or something you will never see for many years.
OR make the box do not bounces off when OnCollisionEnter. : You can set the velocity to zero, and set the rigidbody to is$$anonymous$$inematic = true