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.

enum Shape { "cube", "sphere", "cylinder", "xy_square", "xy_circle", "none" }

The shape that the TriggerRegion takes.

MemberDescription
cubeA cube with dimensions of [-1,-1,-1] to [1,1,1].
sphereA sphere with a radius of 1.
cylinderA cylinder with a radius of 1 in the xy plane and a height of -1 to 1 in the Z-axis.
xy_squareA square with dimensions of -1 to 1 in both x and y and infinite in Z-axis.
xy_circleA circle with a radius of 1 in the xy plane and infinite in the Z-axis.
noneInfinite everywhere, still reports coordinates of trigger objects in the coordinate system of the trigger region. Useful for converting coordinates from something relative to a target instance to coordinates in Z.camera, for example.