Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved PlayerBody.AddForce Only going up and down

Discussion in 'Physics' started by Crazybrownie204, Nov 18, 2021.

  1. Crazybrownie204

    Crazybrownie204

    Joined:
    Mar 22, 2021
    Posts:
    23
    So I am using a PlayerBody.AddForce(PlayerCamera.TransformDirection(Vector3.back) piece of code, but whenever I run it it only really adds force up and down, not adding force in the direct opposite direction you face like I wanted. I have connected everything up correctly, but it still doesn't seem to be working. I would be so thankful if you could help me!
     
  2. Crazybrownie204

    Crazybrownie204

    Joined:
    Mar 22, 2021
    Posts:
    23
    Never mind I figured out the problem