UnionShape

UnionShape

Union of two shapes

Constructor

new UnionShape(shape1, shape2, params)

Source:

Constructor. The two shapes should be both local or both global.

Parameters:
Name Type Description
shape1 Shape

the first shape

shape2 Shape

the second shape

params Object

parameters (basically which kind of min is used)

Classes

UnionShape

Methods

onAdd(scene)

Source:

Additional actions to perform when the object is added to the scene. Propagate the call.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.

setId(scene)

Source:

Set the ID of the shape. Propagate the call.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.