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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Need help with Character Movement or Terrain Colision [Video explaining issue]

Discussion in 'Scripting' started by TheOneDemand, Mar 6, 2017.

  1. TheOneDemand

    TheOneDemand

    Joined:
    Mar 5, 2017
    Posts:
    3


    i want to add that. i don't want to use the scripts that come with unity. cause i learn better if i write down and understand the code. and i want to understand what is happening. i don't just want an end result :)

    thanks for the help in advance :D
     
  2. mafiadude1

    mafiadude1

    Joined:
    Jun 28, 2012
    Posts:
    59
    Since you're using a rigidbody, instead of doing Transform.Translate() in your movement script. Try to use rigidbody forces like
    Rigidbody.AddForce or modify the velocity directly with RigidBody.Velocity.