- Home /
Point of contact on other object in OnTriggerEnter
Is it possible to determine the point (on the other object) when a kinematic/trigger rigidbody hits another object?
No, it's not. That only works for actual collisions. You could approximate it after the fact using the bounding volumes of the respective colliders, but the exact point doesn't get stored.
is there a way to retrieve it upon collision then from the collider or something else?
Answer by fafase · May 04, 2012 at 10:38 AM
Maybe this one: http://unity3d.com/support/documentation/ScriptReference/Collider.ClosestPointOnBounds.html
It is not going to fix entirely your issue but that might be the closest to.
Also, it returns a Vector3 so you could use that for what you need.
This works perfect for me! Thanks for mentioning this method. :)
Your answer
Follow this Question
Related Questions
How to get collision point when using onTriggerEnter 5 Answers
Can't get trigger to work 1 Answer
Trigger not reaction to code, even tho there is collision detection 2 Answers
Moving Trigger/Platform and Moving Player calls OnTriggerEnter every frame 0 Answers
OnTriggerEnter fails to activate 1 Answer