フライパン滑り調整
This commit is contained in:
parent
6688e66490
commit
421dbd48a3
|
|
@ -19,7 +19,7 @@ namespace MyGame.Scenes.Main
|
||||||
// 移動量が少ないときは動かない
|
// 移動量が少ないときは動かない
|
||||||
// if (controller.Delta.magnitude >= 1f) Debug.Log(controller.Delta.magnitude);
|
// if (controller.Delta.magnitude >= 1f) Debug.Log(controller.Delta.magnitude);
|
||||||
var direct = 1f;
|
var direct = 1f;
|
||||||
// direct = controller.Delta.magnitude < 0.1f ? 0 : 1;
|
direct = controller.Delta.magnitude < 0.1f ? 0 : 1;
|
||||||
other.attachedRigidbody.AddForce(controller.Delta * thrust * direct, ForceMode2D.Impulse);
|
other.attachedRigidbody.AddForce(controller.Delta * thrust * direct, ForceMode2D.Impulse);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue