Skip to content

shape(...)

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

shape(val: Z.TriggerRegion.Shape): this;

Sets the shape of the TriggerRegion.

Default value: Z.TriggerRegion.Shape.cube

ParameterTypeDescription
valZ.TriggerRegion.ShapeThe shape to set the TriggerRegion to.

this