Class Index | File Index

Classes


Class enchant.PhyPulleyJoint


Extends enchant.BaseJoint.

Defined in: PhySprite.enchant.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
enchant.PhyPulleyJoint(sprite1, sprite2, anchor1, anchor2, ratio)
滑車ジョイント
Fields borrowed from class enchant.BaseJoint:
sprite1, sprite2
Methods borrowed from class enchant.BaseJoint:
destroy
Class Detail
enchant.PhyPulleyJoint(sprite1, sprite2, anchor1, anchor2, ratio)
滑車ジョイント
var ball1 = new PhyCircleSprite(8, DYNAMIC_SPRITE);
ball1.position = { x: 80, y: 160 };
var ball2 = new PhyCircleSprite(8, DYNAMIC_SPRITE);
ball2.position = { x: 240, y: 160 };
//滑車ジョイント
var pulleyJoint = new PhyPulleyJoint(ball1, ball2, new b2Vec2(80, 100), new b2Vec2(240, 100), 1);
Parameters:
{enchant.PhySprite} sprite1 Optional
繋げるスプライト1
{enchant.PhySprite} sprite2 Optional
繋げるスプライト2
{b2Vec2} anchor1 Optional
アンカー1の位置
{b2Vec2} anchor2 Optional
アンカー2の位置
{Number} ratio Optional
左右のバランス

Documentation generated by JsDoc Toolkit 2.4.0 on Sat Mar 31 2012 19:45:18 GMT+0900 (JST)