Collision Point/Area between RigidBody2d

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By storkoxa

Hi guys,

I’m trying to get the collision point/area in godot 3

My workaround by now is:

func _on_Asteroid_body_entered(body):
   #mid point between object and body
   playCollisionEffectOn(global_position.linear_interpolate(body.global_position, 0.5))
  

but it is not the real collision point, it works if I have 2 circles for example.
if I enable Visible collision shapes, I can see a Red Mark on the collision point, it means godot has this information, I just don’t know how to access it.

Thank you.