void Update() { if (!mouseDown) { return; } rigidBody.AddForce(new Vector3(100f, 100f, 100f)); if (!Input.GetMouseButton(1)) { mouseDown = false; rigidBody.linearDamping = 0f; } }
void Update() { if (!mouseDown) { return; } rigidBody.AddForce(new Vector3(100f, 100f, 100f)); if (!Input.GetMouseButton(1)) { mouseDown = false; rigidBody.linearDamping = 0f; } }