How can I get collision point of 2 objects

After objects register a collide I want to get the collision point (X,Y) where they touch. Is it shome-have doable.

Collisions are done via Polygons. Barring very rare/specific circumstances where they’ve only collided by one pixel, there isn’t a single X/Y point. Instead there are dozens/hundreds/thousands of points when collision occurs.

As far as I know there isn’t a way to get collision x/y due to this.

1 Like

Actually the raycast can return positions, i don’t know if this can help you, but it’s here.

1 Like

Sadly it can’t…

how complex are your bodys?
you could use distance check and/or trigonomy math to firgure out where there would collide.
this method might me pretty heavy on performance if you need to check alot of objects, considering this would come on top of collision check.

1 Like

Complex. Im thinking of splitting the the static object into multiple ones.