Best Way to Detect Collisions Between 2D Sprites

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

Is there anything better than the following ? (For Godot 3)

var collision_info = get_node("whateverNodeYoureMoving").move_and_collide(speed * delta * motion.normalized())

if collision_info:
   var bodyHit = (collision_info.collider())

Thanks a lot !

2 sprites or bodies? It looks like you are using kinematic bodies.

eons | 2018-08-12 16:26