-1

An object with a collider moves towards another object with a collider. I want to make that when objects intersect, a new object is created at the center of the intersection of two colliders. I'm trying to create an object at the moment of intersection, but I can't get the correct coordinates for its location. Can this be done with the OnTriggerEnter method?

Operator
  • 27
  • 5
  • See https://docs.unity3d.com/ScriptReference/Collision.html, specifically the `GetContact` method. – Absinthe Aug 04 '23 at 10:56
  • @Absinthe which isn't available for `OnTriggerEnter` which basically is the easy answer for this question ... you can probably still compute the overlap point manually though – derHugo Aug 04 '23 at 12:33

0 Answers0