getSlideCollision(slideIdx:)

    Returns a KinematicCollision2D, which contains information about a collision that occurred during the last call to moveAndSlide. Since the body can collide several times in a single call to moveAndSlide, you must specify the index of the collision in the range 0 to (getSlideCollisionCount - 1).

    CharacterBody2D.swift:1328
    final func getSlideCollision(slideIdx: Int32) -> KinematicCollision2D?

    Example usage:

    Other members in extension

    Types

    Type members

    Instance members