Class enchant.gl.physics.PhySphere
- Defined in: physics.gl.enchant.js
- Extends enchant.gl.physics.PhySprite3D
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.gl.physics.PhySphere(radius, mass, lDamp, aDamp)
球体型の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.PhySphere(radius, mass, lDamp, aDamp)
球体型のPhySprite3D.
PhySprite3Dに追加すると, stepSimulationを呼び出した際に物理演算が適用される.
- Parameters:
- {Number} radius
- 球体の半径.
- {Number} mass
- 剛体の質量.
- lDamp
- aDamp