AmmoComponent

AmmoComponent

new AmmoComponent(settingsopt)

Parameters:
Name Type Attributes Description
settings Object <optional>

The settings object can contain the following properties:

Properties
Name Type Attributes Default Description
mass number <optional>
0

(0 means immovable)

useBounds boolean <optional>
false

use the model bounds or use the real (must-be-convex) vertices

useWorldBounds boolean <optional>
false

use the model world bounds or use the real (must-be-convex) vertices (this setting is experimental)

useWorldTransform boolean <optional>
false

use the model world transform instead of local (this setting is experimental)

showBounds boolean <optional>
false

show the model world bounding box (this setting is experimental)