Skip to content

Motion(動き)

Motion.point (向ける)


typescript
// マウスポインターへ向ける
sprite.Motion.point.toMouse();

// 他のスプライトの座標へ向ける
sprite.Motion.point.toSprite( otherSprite );

// ランダムな方向へ向く
sprite.Motion.point.toRandom();