-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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 get_slide_collision() crashes. #11232
Comments
got this from gdb, if it helps.
|
is this just me? should I put up a sample project? .b |
A sample is always welcome for quick tests :D |
here you go. .b |
I can't reproduce the crash with the sample project on 18e453b (current master). Are you sure there is not an invalid access to the collision list somewhere else in your code? KB have changed a lot and those |
thanks for looking into it.. I am not sure what happened, but I decided to wipe the whole source dir and clone the git repo again for totally clean build.. now it really seems to work. I close this issue. |
Operating system or device, Godot version, GPU Model and driver (if graphics related):
Kubuntu 17.04, Godot git MASTER
Issue description:
the new changes to KinematicBody api brings crashes when colliding. I do this:
if get_slide_count() > 0:
print("slide count: ", get_slide_count())
print(get_slide_collision(0))
and I get this on console:
slide count: 1
ERROR: operator[]: FATAL: Index p_index out of size (size()).
At: core/vector.h:137.
or am I doing something wrong? the get_slide_count is the new get_collision_count, right? atleast it will return 0 count when my character is still on air dropping to ground.
The text was updated successfully, but these errors were encountered: