Hello Guest

Author Topic: Collider not working  (Read 3456 times)

pascal_mueller@gmx.net

  • Newbie
  • *
  • Posts: 4
    • View Profile
Collider not working
« on: November 08, 2013, 07:12:42 am »
Hey Guys,

I ran into a very strange problem. I am programming a 2d side scroller. I want that my player can only jump when he is on the ground. Unfortunatly the isGrounded variable from the Unity CharacterController is not working properly.
To solve this problem, I attached another collider at the feet of my character. This collider sets a variable on true when it collides with the floor. This is working great, but certain parts of the floor don't react with the trigger. When I pause the game, I can clearly see that the collider overlap. I attached a picture. The floorplane which is inside the red rectancle works perfectly, but for some strange reason the floor in the blue rectancle does not work with the collider. In the picture you can also see that the feet collider is inside the collider of the floor.
What am I doing wrong here? If you have any other ideas how to overcome this problem that my player is only able to jump when he stands on the floor.

Cheers Pascal

pascal_mueller@gmx.net

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Collider not working
« Reply #1 on: November 08, 2013, 07:13:24 am »
Sorry. Attached the wrong pic.