Create Collision

Description

The Create Collision behavior will create a new collision body for the selected object. This collision body can take the shape of a circle, rectangle, or a polygon.

 

Properties

Object A

By default this is the current object selected. You can change this to any other object in your scene.

Circle

Another object in your scene to check the collision against. If Object B is left blank then the behavior will trigger when Object A touches anything else in your scene.

Rectangle

When this toggle is on, an event will trigger when a collision occurs on the top surface of Object B.

Polygon

When this toggle is on, an event will trigger when a collision occurs on the bottom surface of Object B.

 

Outputs

None.

Examples

If an object's changes shape in game from a circle to a square you can use the create collision behaviour to ensure the collision body shape matches the graphic shape.

 

Related

Collided 

Stopped Colliding

While Colliding 

0 Comments

Article is closed for comments.