MeshCollider

MeshCollider

Physics mesh collider.

Constructor

new MeshCollider(settingsopt)

Parameters:
Name Type Attributes Description
settings Object <optional>
Properties
Name Type Attributes Description
meshData MeshData <optional>
scale Vector3 <optional>

Members

meshData :MeshData

scale :Vector3

Methods

(static) createCannonShape(meshData) → {CANNON.Trimesh}

Return a new instance of a cannon trimesh

Parameters:
Name Type Description
meshData ArrayBuffer

clone() → {MeshCollider}

getCannonShape() → {CANNON.Trimesh}

updateCannonTransform()

Update the transform of existing cannon shape