Box2d bodies are not removed when scene is changed twice
- Dominant language
- Kotlin
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
In my game a had a collision listener when player touches the door.
Listener launched twice and door body was still collidable in new scene, yet its sprite was gone as intended.
Simple reproducer - click provided buttons a few times
https://github.com/Solidogen/retaining-bodies-bug
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the reproducer at https://github.com/Solidogen/retaining-bodies-bug and repeat the scene change using its buttons. Trace Box2D body and collision-listener cleanup across the scene transition; done means the old door body is removed or non-collidable and the listener is not triggered again in the new scene.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100