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

KinematicBody.move_and_collide() affects all KinematicCollisions #48946

Closed
PatrickCaughey opened this issue May 21, 2021 · 1 comment
Closed
Labels

Comments

@PatrickCaughey
Copy link

Godot version:
Godot_v3.3.1.stable.official

OS/device including version:
Windows 10
64 bit

Issue description:
When move_and_collide returns a KinematicCollision, it always returns the same collision, but changes its values. This causes all collisions to actually be the same object with the same values. This is not intuitive, as it appears that nothing has touched the collisions, but they are all changing.

Steps to reproduce:
Use multiple move_and_collide calls from the same object, make sure they all result in collisions. Check whether all of the returned collisions are the same object.

Check to see step by step. Each variable holds the same object, which is updated by move_and_collide.

Minimal reproduction project:
TestProject.zip

@KoBeWi
Copy link
Member

KoBeWi commented May 21, 2021

Duplicate of #36290

@KoBeWi KoBeWi marked this as a duplicate of #36290 May 21, 2021
@KoBeWi KoBeWi closed this as completed May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants