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.
  2. Dismiss Notice

Question Several collision problems (pushed through walls, climb on enemy collider...)

Discussion in 'Physics' started by GameMarshal, Nov 26, 2020.

  1. GameMarshal

    GameMarshal

    Joined:
    Nov 9, 2020
    Posts:
    8
    Hi,

    I am working on my first 3d game with Unity and I am facing three collision problems:
    • When I walk or run and collide with the enemy creature, I climb on top of it.
    More precisely, I climb exaclty the height of the enemy collider box value.
    I didn't add to my controller anything to climb or jump, there are no stairs or platforms in my game.
    • When the enemy pushes me against a wall, I go through it.
    My walls have a mesh collider, not set to convex. The collision works fine, for both the controller and the enemy object, but not when pushed against a wall.
    • I'm not pushed by the enemy whereas it has a rigid body of mass 3000 and my player controller a mass of 80.
    This problem is totally the contrary of the second one, and I don't know how I switch from the being pushed through the wall to the enemy object not being able to push the controller.

    Controller components:


    Enemy components:


    Walls components:


    I think I have set everything fine and don't know what to fix to get it working.
    Thanks ;)
     
  2. vanleiz

    vanleiz

    Joined:
    Dec 18, 2020
    Posts:
    1
    I have the exact same problem.