Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Avoid going through the ground at any time

Discussion in 'Physics' started by unity_AA7310A29ECC7F8838F7, Mar 15, 2023.

  1. unity_AA7310A29ECC7F8838F7

    unity_AA7310A29ECC7F8838F7

    Joined:
    Mar 15, 2023
    Posts:
    1
    Hello,
    here a gif to explain my problem (please click on image attached to animate)
    b.gif

    My character in blue going through the floor because it is hitting a sphere with sphere collider.
    My character have a box collider.
    I need to keep thoses collider's shapes.
    I can't scale height of the gray sphere collider because my character will sometimes scale down (and could going under the gray sphere).
    Finally my floor in red is a cube with box collider.

    How can I prevent my character going through the floor like this, please ?