Class Index | File Index

Classes


Class enchant.PhyDistanceJoint


Extends enchant.BaseJoint.

Defined in: PhySprite.enchant.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
enchant.PhyDistanceJoint(sprite1, sprite2)
距離ジョイント
Field Summary
Field Attributes Field Name and Description
 
減衰比.
 
応答速度.
 
ジョイントの距離
Fields borrowed from class enchant.BaseJoint:
sprite1, sprite2
Methods borrowed from class enchant.BaseJoint:
destroy
Class Detail
enchant.PhyDistanceJoint(sprite1, sprite2)
距離ジョイント
//軸
var axis = new PhyCircleSprite(8, STATIC_SPRITE);
axis.position = { x: 160, y: 160 };
game.rootScene.addChild(axis); // シーンに追加
//ボール生成
var ball = new PhyCircleSprite(8, DYNAMIC_SPRITE);
ball.position = { x: 100, y: 250 };
game.rootScene.addChild(ball); // シーンに追加
//距離ジョイント
var joint = new PhyDistanceJoint(axis, ball);
Parameters:
{enchant.PhySprite} sprite1 Optional
繋げるスプライト1
{enchant.PhySprite} sprite2 Optional
繋げるスプライト2
Field Detail
dampingRatio
減衰比. 0 =減衰なし、1 =臨界減衰。

frequencyHz
応答速度.

length
ジョイントの距離

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