Class enchant.gl.physics.PhyCube
- Defined in: physics.gl.enchant.js
- Extends enchant.gl.physics.PhyBox
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.gl.physics.PhyCube(scale, 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.PhyCube(scale, mass)
立方体型のPhySprite3D.
PhySprite3Dに追加すると, stepSimulationを呼び出した際に物理演算が適用される.
- Parameters:
- {Number} scale
- 箱の中心から面までの距離.
- {Number} mass
- 剛体の質量.