简体   繁体   中英

Character stuck on a tile unity3d

I have no idea what to say, but I have this image which shows how the character is stuck, the character gets stuck when I try to jump couple times, character is not falling.

if I jump 1 more time, the character jumps and drops to the ground图片

Here is movement code (didn't want to paste it here cuz it is kind of big)

oh and btw this is 2.5d game, 2d in a 3d engine

Maybe you are stuck on a subpixel?

  • Check the colliders: Window->Analysis->Physics Debugger.
  • Check the x-coordinates of the blocks in each "tower".
  • Change from boxcollider to spherecollider (so you slip off of small edges?)

What about the "GroundCheck Transform"? I don't see why it's a separate transform, is it a child of the player?

try to add a box collider to the image..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM