16. Area2D and CollisionShape2D
For detecting collisions we need either physics node or Area2D node.
We use an Area2D node, named player, with 2 childs, a sprite (Godot icon), and Collision2DShape. The shape selected is RectangleShape2D
This shows the node structure for the scene and the collision.
No comments:
Post a Comment