#character falls through floor when it moves

1 messages · Page 1 of 1 (latest)

naive shadow
#

i want to make sure the little guy stays inside the white shape but he keeps falling out when i rotate the shape a little more. its using a collisionpolygon2d with a build mode set to segments

naive shadow
#

the object is being rendered through a viewport but the image it renders is responsible for the collisionshape. using opaque_to_polygons() for that

lofty quail
naive shadow
lofty quail
#

So you want what happens in the video to happen?
Why don't you just place them inside the shape then?

#

Aside from that:

  • Make sure the movement happens in _physics_process()
  • Use an AnimatableBody
  • If all else fails, make sure to move it in small increments and call move_and_collide() for every small move.
naive shadow