Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Bounces on platforms

Discussion in 'Physics' started by shawndingo, Nov 5, 2018.

  1. shawndingo

    shawndingo

    Joined:
    Oct 4, 2018
    Posts:
    39
    So i have an infinite runner type 2d game. The 2d platforms are generated next to each other. No gaps. When i run the game i can see the platforms are side by side as should be.. My player is on a bicycle with a circle collider, ive tried box. Every time my player rolls over the connected platforms he bounces. When the speed picks up, he bounces way in the air. I dont get why. There isn't anything for him to bounce off of. I have a rigidbody 2d attached. Any help would be appreciated.
     
  2. shawndingo

    shawndingo

    Joined:
    Oct 4, 2018
    Posts:
    39
  3. shawndingo

    shawndingo

    Joined:
    Oct 4, 2018
    Posts:
    39
    it seems that my collider is going through the land colliders. I have collision detection on continuous. and extrapolate. Ive tried box colliders and circle. Ive messed with physics tab and no luck. Ive messed with gravity, mass, no luck..
     
  4. shawndingo

    shawndingo

    Joined:
    Oct 4, 2018
    Posts:
    39
    Now when i use circle colliders he bounces. Box colliders he gets stuck.. Im lost lol
     
  5. SparrowsNest

    SparrowsNest

    Joined:
    Apr 6, 2017
    Posts:
    967
    i'm not talking from exprience as i'm a 3D developer, only did 2D on Flash.

    this issue is a 3D problem too, but i think only 2D has a solution, use edge collider for the terrain, i guess you use box right now?
     
  6. shawndingo

    shawndingo

    Joined:
    Oct 4, 2018
    Posts:
    39
    I also tried edge but same result
     
  7. shawndingo

    shawndingo

    Joined:
    Oct 4, 2018
    Posts:
    39
    It just seems that the edge collider isnt continuously finding the land collider. It drops below it ever so slightly and then gets stuck.