Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move a CharacterBody2D and TileMap to the Same SubViewport as its Children via the Codes Causes the Collision Failed #83339

Closed
Lazy-Rabbit-2001 opened this issue Oct 14, 2023 · 1 comment

Comments

@Lazy-Rabbit-2001
Copy link
Contributor

Lazy-Rabbit-2001 commented Oct 14, 2023

Godot version

4.2 beta1

System information

Windows 11, GLES3

Issue description

When a CharacterBody2D and a TileMap are moved to the same SubViewport as its children through the codes, the collision between the body and tiles will be broken.
P.S. This bug will be automatically fixed when the scene gets reloaded.

Steps to reproduce

  1. Prepare a CharacterBody2D with move_and_slide() implemented and velocity not (0, 0)
  2. Make a TileMap with collision and draw a wall or the ground, and make the body move towards the wall or ground.
  3. Input some codes that moves the body and the tiles to the SubViewport as its children
  4. Run the project

Minimal reproduction project

CollisionIssue.zip

@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title Move a CharacterBody2D and TileMap underto the Same SubViewport Caused the Collision Move a CharacterBody2D and TileMap underto the Same SubViewport via the Codes Caused the Collision Oct 14, 2023
@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title Move a CharacterBody2D and TileMap underto the Same SubViewport via the Codes Caused the Collision Move a CharacterBody2D and TileMap underto the Same SubViewport via the Codes Causes the Collision Failed Oct 14, 2023
@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title Move a CharacterBody2D and TileMap underto the Same SubViewport via the Codes Causes the Collision Failed Move a CharacterBody2D and TileMap to the Same SubViewport as its Children via the Codes Causes the Collision Failed Oct 14, 2023
@Lazy-Rabbit-2001
Copy link
Contributor Author

Closed for the same one with detailed information: #83291

@Lazy-Rabbit-2001 Lazy-Rabbit-2001 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants