Class enchant.gl.physics.PhyCapsule
- Defined in: physics.gl.enchant.js
- Extends enchant.gl.physics.PhySprite3D
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.gl.physics.PhyCapsule(radius, height, mass)
カプセル型の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.PhyCapsule(radius, height, mass)
カプセル型のPhySprite3D.
y軸に沿う円柱の両端に半球をつけた形状.
PhySprite3Dに追加すると, stepSimulationを呼び出した際に物理演算が適用される.
- Parameters:
- {Number} radius
- 半球体の半径.
- {Number} height
- 円柱の高さの半分.
- {Number} mass
- 剛体の質量.