Search Unity

Hills

Discussion in 'Editor & General Support' started by rphad, May 13, 2020.

  1. rphad

    rphad

    Joined:
    Apr 5, 2020
    Posts:
    14
    I am making a car racing game and there is a hill/slope that my car needs to up, but when I try it goes right thru the hill/slope how do I stop this?
    The hill is on a highway and I need to get on an overpass.
    Is there some code or steps i need to take to do this?

    Please keep it simple as i am not very good at this.
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Is the hill/slope a separate object (not part of whatever terrain you are using), and is there no collider on this hill/slope object? If that isn't the case, can you better describe what it is.
     
  3. sietherine

    sietherine

    Joined:
    Dec 23, 2018
    Posts:
    3
    what elements are attached to your car? Rigidbody? Wheel Colliders? Colliders? How are you moving the car in script?
     
    Joe-Censored likes this.