createBody abstract method

int createBody(
  1. Shape3D shape,
  2. BodySettings3D settings
)

Makes a body of shape; 0 when it cannot be made (a shape that is not Shape3D.isValid, a mesh or a height field on a body that is not static, a layer outside 0–15, a full world).

Implementation

int createBody(Shape3D shape, BodySettings3D settings);