Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    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. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Bounces on platforms

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

  1. shawndingo

    shawndingo

    Joined:
    Oct 4, 2018
    Posts:
    34
    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:
    34
  3. shawndingo

    shawndingo

    Joined:
    Oct 4, 2018
    Posts:
    34
    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:
    34
    Now when i use circle colliders he bounces. Box colliders he gets stuck.. Im lost lol
     
  5. SparrowsNest

    SparrowsNest

    Joined:
    Apr 6, 2017
    Posts:
    557
    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:
    34
    I also tried edge but same result
     
  7. shawndingo

    shawndingo

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