Search Unity

Colliding issue

Discussion in 'Physics' started by SnyFort6498, Sep 22, 2017.

  1. SnyFort6498

    SnyFort6498

    Joined:
    Jan 6, 2017
    Posts:
    23
    Im creating a simple platform game. The player has a rigidbody and a collider which allows it to move and jump.

    The thing is, everytime when the player jumps and lands, it gets "buried" on the surface for only a frame. I know this is not a really big issue, but Id like to know if theres any way to solve that problem, so everytime it jumps, it doesnt overlap the floor or any obstacle.
     

    Attached Files:

  2. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    826
    Set the rigidbody to continuous dynamic and interpolate like in the screenshot:
    upload_2017-9-23_12-58-46.png