Merge pull request #3942 from skyace65/KinematicCollision

Add information on how get_slide_count counts collisions
This commit is contained in:
Nathan Lovato
2020-09-01 16:28:55 -06:00
committed by GitHub

View File

@@ -130,6 +130,8 @@ and ``get_slide_collision()``:
var collision = get_slide_collision(i)
print("I collided with ", collision.collider.name)
.. note:: `get_slide_count()` only counts times the body has collided and changed direction.
See :ref:`KinematicCollision2D <class_KinematicCollision2D>` for details on what
collision data is returned.