Core API Reference: Shape Connections

From Color Infection Wiki
Jump to: navigation, search


Break All Connections

Destroy all joints connected with a shape

Input Parameters:

The Shape
the shape

Output Parameters:

(none)
Get Connected Shapes

Get all shapes connected (by joints, including dummy joints) with the input shape.

Input Parameters:

The Input Shape
the input shape

Output Parameters:

Connected Shapes
the shapes connected with the input shape, generally not including the input shape
Are Two Shapes Connected

Check whether or not two specified shapes are connected (by joints, including dummy joints) with each other.

Input Parameters:

Shape 1
one shape
Shape 2
the other shape

Output Parameters:

Connected?
true for the two specified shapes are connected now
Is Connected With Ground?

Check whether or not a shape connected (by joints, including dummy joints) with ground.

Input Parameters:

The Shape
the input shape

Output Parameters:

Connected With Ground?
true for the input shape is connected with ground