add force left unity code example Example: unity how to add force public Rigidbody rb; if(Input.GetKey(KeyCode.W)) { rb.AddForce(100, 0, 0); }