Holds collision data from the movement of a PhysicsBody2D.
Holds collision data from the movement of a PhysicsBody2D, usually from PhysicsBody2D.move_and_collide(). When a PhysicsBody2D is moved, it stops if it detects a collision with another body. If a collision is detected, a KinematicCollision2D object is returned.
The collision data includes the colliding object, the remaining motion, and the collision position. This data can be used to determine a custom response to the collision.
Returns the collision angle according to up_direction, which is Vector2.UP by default. This value is always positive.
Returns the unique instance ID of the colliding body's attached Object. See Object.get_instance_id().
Returns the colliding body's shape index. See CollisionObject2D.