ComponentManager.destroy() method

Removes the given component from the space.

Signature:

destroy(component: Component3D): boolean;

Parameters

ParameterTypeDescription
componentComponent3DThe component to remove.

Returns:

boolean

true if the component was successfully removed, false otherwise.