CylinderCollider

CylinderCollider

Cylinder collider, that extends along the Z axis.

Constructor

new CylinderCollider(settingsopt)

Parameters:
Name Type Attributes Description
settings Object <optional>
Properties
Name Type Attributes Default Description
radius number <optional>
0.5
height number <optional>
1

Members

height :number

radius :number

Methods

(static) createCannonShape(radius, height, segment) → {CANNON.Cylinder}

return a new instance of cannon shape for this collider

Parameters:
Name Type Description
radius Number
height Number
segment Number

clone() → {CylinderCollider}

getCannonShape() → {CANNON.Cylinder}