API Docs for: 0.6.1
Show:

Plane Class

Extends Shape
Defined in: src/shapes/Plane.js:6

A plane, facing in the Z direction. The plane has its surface at z=0 and everything below z=0 is assumed to be solid plane. To make the plane face in some other direction than z, you must put it inside a RigidBody and rotate that body. See the demos.

Constructor

Plane

()

Methods

calculateLocalInertia

() Vec3

Inherited from Shape: src/shapes/Shape.js:57

Calculates the inertia in the local frame for this shape.

Returns:

Vec3:

updateBoundingSphereRadius

() Number

Inherited from Shape: src/shapes/Shape.js:39

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

Returns:

Number:

volume

() Number

Inherited from Shape: src/shapes/Shape.js:48

Get the volume of this shape

Returns:

Number:

Properties

boundingSphereRadius

Number

Inherited from Shape: src/shapes/Shape.js:25

The local bounding sphere radius of this shape.

collisionResponse

Boolean

Inherited from Shape: src/shapes/Shape.js:31

Whether to produce contact forces when in contact with other bodies. Note that contacts will be generated, but they will be disabled.

type

Number

Inherited from Shape: src/shapes/Shape.js:17

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