SphereCollider

SphereCollider

new SphereCollider(settingsopt)

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

Members

radius :number

Methods

(static) createCannonShape(radius) → {CANNON.Sphere}

Return a new instance of Cannon.Sphere

Parameters:
Name Type Description
radius

clone() → {SphereCollider}

getCannonShape() → {CANNON.Sphere}

get Cannon shape for the collider

updateCannonTransform()

Update existing cannonShape