Class enchant.gl.physics.PhyContainer
- Defined in: physics.gl.enchant.js
- Extends enchant.gl.physics.PhySprite3D
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.gl.physics.PhyContainer(scale, mass)
Square type PhySprite3D.
|
- 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.PhyContainer(scale, mass)
Square type PhySprite3D.
If added to PhySprite3D, physical calculation will be performed each time stepSimulation is called up.
- Parameters:
- {Number} scale
- Distance between center and edge of square.
- {Number} mass
- Rigid body mass.