Skip to content

Check Box 2D

Physics » Check Box 2D

Description

Returns true if casting a 2D box at a position doesn't collide with anything

Parameters

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 Cloc-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

Keywords

Check Collide Touch Suit Square Cube 2D

Back to top