Class enchant.gl.physics.RigidBox
- Defined in: physics.gl.enchant.js
- Extends enchant.gl.physics.Rigid
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.gl.physics.RigidBox(scaleX, scaleY, scaleZ, mass)
直方体型の剛体オブジェクト.
|
- Fields borrowed from class enchant.gl.physics.Rigid:
- friction, restitution, rigidBody, world
Method Summary
- Methods borrowed from class enchant.gl.physics.Rigid:
- activate
- applyCentralImpulse
- applyImpulse
- clearForces
- contactTest
- kinematize
- rotationApply
- rotationSet
- scale
- translate
Class Detail
enchant.gl.physics.RigidBox(scaleX, scaleY, scaleZ, mass)
直方体型の剛体オブジェクト.
- Parameters:
- {Number} scaleX
- 直方体の中心からx軸に垂直な面までの距離.
- {Number} scaleY
- 直方体の中心からy軸に垂直な面までの距離.
- {Number} scaleZ
- 直方体の中心からz軸に垂直な面までの距離.
- {Number} mass
- 剛体の質量.