Skip to content

Check Box 2D

Physics ยป Check Box 2D


Returns true if casting a 2D box at a position collides with something


Name Description
Position The scene position where the box's center is cast. Z axis is ignored
Size Size of each side's extension along its local axis
Angle Clock-wise rotation measured in degrees
Layer Mask A bitmask that skips any objects that don't belong to the list

Example 1

Note that this Instruction uses Unity's 2D physics engine. It won't collide with any 3D objects


Check Collide Touch Suit Square Cube 2D