Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2016-0-4 21:22

Class enchant.gl.physics.PhyCapsule

Class Summary
Constructor Attributes Constructor Name and Description
 
enchant.gl.physics.PhyCapsule(radius, height, mass)
Capsule type PhySprite3D.
Fields borrowed from class enchant.gl.physics.PhySprite3D:
friction, restitution

Class Detail

enchant.gl.physics.PhyCapsule(radius, height, mass)
Capsule type PhySprite3D. A shape with a cylinder running along the y axis and hemispheres at both ends. If added to PhySprite3D, physical calculation will be applied each time stepSimulation is called up.
Parameters:
{Number} radius
Hemispherical radius.
{Number} height
Half the height of cylinder.
{Number} mass
Rigid body mass.
See:
enchant.gl.physics.PhySprite3D
enchant.gl.physics.PhyScene3D