move_and_slide() cannot test without placing the object, move_and_collide(vel, true) only returns one collision #13235
Bellbirdbits
started this conversation in
2D
Replies: 1 comment
-
|
in 3D move_and_collide() have a "max_collisions" argument so you can get as many collisions as you want , idk why it doesnt exist in 2D |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It doesnt seem possible to test for more than one collision using move_and_collide().
If an object happens to collide with two things, in my case the floor and the thing collecting it, the engine cant do both, only the floor collision is returned.
if I use move_and_slide() I cannot use the true flag to test the new position and decide what happens
What should I do?
Is this worth putting a proposal in to get some kind of parity between the two functions?
All I want to do is use something like move_and_collide() and get a list of everything it hit,
or have some way to get all collisions, but have the option to respond to different class types (eg col.get_collider() is my_type)
Beta Was this translation helpful? Give feedback.
All reactions