API Docs for: 0.6.0
Show:

Shape Class

Defined in: src/shapes/Shape.js:8

Base class for shapes

Constructor

Shape

()

Methods

calculateLocalInertia

() Vec3

Calculates the inertia in the local frame for this shape.

Returns:

Vec3:

updateBoundingSphereRadius

() Number

Computes the bounding sphere radius. The result is stored in the property .boundingSphereRadius

Returns:

Number:

volume

() Number

Get the volume of this shape

Returns:

Number:

Properties

boundingSphereRadius

Number

The local bounding sphere radius of this shape.

collisionResponse

Boolean

type

Number

The type of this shape. Must be set to an int > 0 by subclasses.

types

Object static

The available shape types.