Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Collision shapes behave as if they are bigger than what it should be #72

Closed
DeeJayLSP opened this issue Nov 19, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@DeeJayLSP
Copy link

Describe the bug
CharacterBody2D collisions (I haven't tested other body types) behave like they are somewhat bigger than what shows with Visible Collision Shapes on.

Box2D/Rapier2D

off

To Reproduce
Steps to reproduce the behavior:

  1. Make a 2D platformer like the one above.
  2. Move the character to a wall and see the distance between the shapes.

Expected behavior
The same as the Rapier2D example above.

If this is intended at least could be documented

Versions (please complete the following information):

  • OS: [Ubuntu 22.04]
  • Godot [v4.2 beta5]
  • Box2d [v0.9.2]
@DeeJayLSP DeeJayLSP added the bug Something isn't working label Nov 19, 2023
@Ughuuu
Copy link
Collaborator

Ughuuu commented Nov 20, 2023

Interesting. I think this is the polygon skin that box2d has. I have removed it in the past, but forgot in this new impl. I will document it in the readme, and I think I would wait for box2d v3 to appear(as that one doesnt use this polygon skin anymore).

You can view progress state here: erincatto/box2c#44

@Ughuuu
Copy link
Collaborator

Ughuuu commented Nov 22, 2023

Added a documentation in the readme:
image
Hope box2c will fix it by removing polygon skin.

@Ughuuu Ughuuu closed this as completed Nov 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants