|
@@ -237,7 +237,6 @@ With this code, if no collisions occurred on a given frame, the loop won't run.
|
|
#...
|
|
#...
|
|
|
|
|
|
# Iterate through all collisions that occurred this frame
|
|
# Iterate through all collisions that occurred this frame
|
|
- # in C this would be for(int i = 0; i < collisions.Count; i++)
|
|
|
|
for index in range(get_slide_collision_count()):
|
|
for index in range(get_slide_collision_count()):
|
|
# We get one of the collisions with the player
|
|
# We get one of the collisions with the player
|
|
var collision = get_slide_collision(index)
|
|
var collision = get_slide_collision(index)
|