Search Unity

Create with Code Unit 3.1: Issues with obstacle being 0.5 units above ground cannot figure out why

Discussion in 'Getting Started' started by SunePark, Feb 10, 2020.

  1. SunePark

    SunePark

    Joined:
    Feb 7, 2020
    Posts:
    5
    Hi Eventhough i have followed the tutorial to the tee, when my obstacles spawns it spaws 0.5 units in the air.(y-axis) It has done that from the start of the tutorial also when there was only 1 obstacle. I cannot figure why this is happening. Ideas or Explanation for learning sake would be appreciated :),
     
  2. UnityMaru

    UnityMaru

    Community Engagement Manager PSM

    Joined:
    Mar 16, 2016
    Posts:
    1,227
    Are you able to provide any screenshots of what you have in the editor/inspection screen so we can see what the issue may be?
     
  3. VladimirD82

    VladimirD82

    Joined:
    Apr 6, 2020
    Posts:
    1
    I had the same issue.
    upload_2020-4-6_16-44-42.png
    Check your box collider for obstacle. It should be until the red line in the picture.
     

    Attached Files:

    Last edited: Apr 6, 2020
    SunePark likes this.
  4. SunePark

    SunePark

    Joined:
    Feb 7, 2020
    Posts:
    5
    Hi Vladimir
    Spot on, the box collider was out of whack. Thanks for your input.