Loading...

Logo
DocumentationBehaviorsLogicGet Bounding Box
Logic

Get Bounding Box

Last updated September 28, 2018

Description

Gets an object's axis-aligned bounding box. An axis-aligned bounding box is a rectangle that contains the object.

Properties

Triggers Immediately

This behavior has no other properties.

Outputs

X

This outputs the position of the bounding box on the X-axis as a value.

Y

This outputs the position of the bounding box on the Y-axis as a value.

Width

Outputs the width of the bounding box.

Height

Outputs the height of the height of the bounding box.

Object ID

This outputs the Object ID.

Examples

Use the Is Intersecting Behaviour to see if two objects could be colliding with each other by checking a rectangle to rectangle intersection with each object's bounding box.

Calculate Direction

Calculate Distance

Get Time

Is Intersecting

GetBoundingBoxReference.gif