Class enchant.gl.physics.RigidCube
- Defined in: physics.gl.enchant.js
- Extends enchant.gl.physics.PhyCube
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.gl.physics.RigidCube(scale, mass)
Rectangular solid rigid object.
|
- Fields borrowed from class enchant.gl.physics.PhySprite3D:
- friction, restitution
Method Summary
- Methods borrowed from class enchant.gl.physics.PhySprite3D:
- applyCentralImpulse
- applyImpulse
- clearForces
- contactTest
- kinematize
- rotationApply
- rotationSet
- scale
- translate
Class Detail
enchant.gl.physics.RigidCube(scale, mass)
Rectangular solid rigid object.
- Parameters:
- {Number} scale
- Distance between center of box and surface.
- {Number} mass
- Rigid body mass.