Optional
options: Partial<BoxColliderOptions>Height of the rectangle
Ignores collisions with layers in the array
Collision layer
X-Y axis offset
TRUE if this collider interact with rigid bodies
Rectangle rotation in radians
Width of the rectangle
Rectangle shaped collider for 2d collisions.
Example