Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2016-0-4 21:24

Class enchant.PhyCircleSprite

Class Summary
Constructor Attributes Constructor Name and Description
 
enchant.PhyCircleSprite(radius, staticOrDynamic, density, friction, restitution, isSleeping)
円の物理シミュレーション用Sprite
Fields borrowed from class enchant.box2d.PhySprite:
angle, angularVelocity, centerX, centerY, position, sleep, type, velocity, vx, vy, x, y
Fields borrowed from class enchant.Sprite:
frame, image
Fields borrowed from class enchant.Entity:
backgroundColor, buttonMode, buttonPressed, compositeOperation, debugColor, height, opacity, originX, originY, rotation, scaleX, scaleY, touchEnabled, visible, width
Fields borrowed from class enchant.Node:
age, parentNode, scene

Class Detail

enchant.PhyCircleSprite(radius, staticOrDynamic, density, friction, restitution, isSleeping)
円の物理シミュレーション用Sprite
  var bear = new PhyCircleSprite(16, enchant.box2d.DYNAMIC_SPRITE, 1.0, 0.5, 0.3, true);
  bear.image = core.assets['chara1.gif'];
Parameters:
{Number} radius Optional
Spriteの半径.
{Boolean} staticOrDynamic Optional
静止するか動くか.
{Number} density Optional
Spriteの密度.
{Number} friction Optional
Spriteの摩擦.
{Number} restitution Optional
Spriteの反発.
{Boolean} isSleeping Optional
Spriteが初めから物理演算を行うか.