Defines a body that represents a polygonal mesh.
See also MeshShape.
new MeshBody(
shape?):MeshBody
Creates a mesh body with an optional initial mesh shape.
Initial mesh shape to add.
MeshBody
material:
VisualMaterial|null=null
Visual material of the body.
The default value is null.
get id():
bigint
Returns the unique identifier of the object.
bigint
get name():
string|null
Name of the body.
The default value is null.
string | null
set name(
name):void
Sets the name of the body.
string | null
Body name.
void
get shapes():
ReadonlySet<MeshShape>
Mesh shapes composing the body.
ReadonlySet<MeshShape>
append(
shape):void
Appends a mesh shape to the body.
If shape is already present, it is not added again.
Mesh shape to append.
void