Class enchant.PhyCircleSprite
Extends
enchant.PhySprite.
Defined in: PhySprite.enchant.js.
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.PhyCircleSprite(radius, type, density, friction, restitution, awake)
円の物理シミュレーション用Sprite
|
- Fields borrowed from class enchant.PhySprite:
- active, angle, angularVelocity, centerX, centerY, position, sleep, type, velocity, visible, vx, vy, x, y
- Methods borrowed from class enchant.PhySprite:
- applyForce, applyImpulse, applyTorque, contact, createPhyBox, createPhyCircle, createPhyPolygon, destroy, getBody, isDynamic, isKinematic, isStatic, setAwake, setDegugImage
Class Detail
enchant.PhyCircleSprite(radius, type, density, friction, restitution, awake)
円の物理シミュレーション用Sprite
var bear = new PhyCircleSprite(16, DYNAMIC_SPRITE, 1.0, 0.5, 0.3, true); bear.image = game.assets['chara1.gif'];
- Parameters:
- {Number} radius Optional
- Spriteの半径.
- {Boolean} type Optional
- 静的,動的,キネマティック
- {Number} density Optional
- Spriteの密度.
- {Number} friction Optional
- Spriteの摩擦.
- {Number} restitution Optional
- Spriteの反発.
- {Boolean} awake Optional
- Spriteが初めから物理演算を行うか.