title: why can i not make my game object move with this code?
body: <p>hi i'd like to ask if anyone can help me fix this code and what the problem is, im brand new to coding and was just following <a href="https://www.youtube.com/watch?v=pCBqgREiSUE" rel="nofollow noreferrer">this tutorial</a></p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class playercontrol : MonoBehaviour
  {
      [SerializeField]
      Vector3 v3force;
      [SerializeField]
      KeyCode KeyPositive;
      [SerializeField]
      KeyCode KeyNegative;
  
      void FixedUpdate()
      {
          if (Input.GetKey(KeyPositive))
              GetComponent&lt;Rigidbody&gt;().velocity += v3force;
          if (Input.GetKey(KeyNegative))
              GetComponent&lt;Rigidbody&gt;().velocity -= v3force;
      }
  }
  </code></pre>
  <p>thanks!</p>