Skip to main content
Skip to main content

Shape

createPlaneShapeFrom2DContour

Description

Create plane shape from 2D contour

Definition

createPlaneShapeFrom2DContour(string name, floatArray contour2DWorldPositions, boolean? createRigidBody)

Arguments

stringnamename of the shape entity
floatArraycontour2DWorldPositionsformat {x1,z1, x2,z2, x3,z3, ...}, minimum of 6 values (3 points) required
boolean?createRigidBody[optional] defaults to false

Return Values

entityIdshape