playMaker

Author Topic: Object not grounded  (Read 2547 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Object not grounded
« on: July 14, 2015, 10:44:45 AM »
Hi!

My character is not properly on the ground. I use 2D collider.
Take a look at the picture, then you will understand what I mean. How can I fix this?
It works find with 3D colliders.

I also tried with a brand new object with a rigid body and 2D collider. The same happen. So it's nothing just with the player character.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Object not grounded
« Reply #1 on: July 15, 2015, 05:47:41 AM »
I would be very grateful if someone could explain me why this happen. It looks like a bug in unity. It should NOT be like this.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
Re: Object not grounded
« Reply #2 on: July 20, 2015, 09:37:38 AM »
I cant see any useful information on your image, but if you have problem with colliders, check something:

if your game is 2D:
-you need to use 2d physics colliders and rigidbodyes.
-the 2d colliders maybe need to be on same Z axis position

You can got much more help, if you make better description about the current problem and better image about the problem, because I cant see anything useful on this image.. where is the ground? and where is the character?

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Object not grounded
« Reply #3 on: July 20, 2015, 07:18:26 PM »
Well, the big blue thing is the object with 2D collider and Rigid Body and the grey area is the ground. You can see the GAP between the blue and the grey ground, but I found a solution. I use Continuous in Collision Detection on the Rigid Body instead of Discrete.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no