C4 Engine
C4 Engine API Documentation

ShapeObject::SetShapeSubstance

Defined in:  C4Shapes.h
Sets the substance associated with a shape.
Prototype

void SetShapeSubstance(SubstanceType substance);

Parameters
substance The new shape substance.
Description
The SetShapeSubstance function sets the substance associated with a shape.

The default substance associated with a shape when it is initially created is kSubstanceNone.
See Also

ShapeObject::GetShapeSubstance

MaterialObject::GetFirstRegisteredSubstance

MaterialObject::FindRegisteredSubstance

MaterialObject::RegisterSubstance

Substance