0 votes

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 !

asked Aug 11 in Engine by mrsandman (16 points)

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

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.