#character falls through floor when it moves
1 messages · Page 1 of 1 (latest)
What kind of object is it?
the object is being rendered through a viewport but the image it renders is responsible for the collisionshape. using opaque_to_polygons() for that
Make sure to use a ConvexPolygonShape or it will not be solid.
The issue rn is that it is made out of thin segments. So it is easy to fall trough.
the issue is that i want the character to stay inside the shape rather than outside
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.
because he falls out if i move it too fast