Physics

Introduction

If need to know when two objects in the game intersect or come into contact:

Where processing physics related:

Any code that needs to access body’s properties should run within the Node._physics_process.

Shapes

A physics body can hold Shape objects as children to define collision bounds and contacts. Never scale a shape in the editor. Always use the size handles.

Collision layers and masks