Collision data for [method PhysicsBody2D.move_and_collide] collisions.
Contains collision data for [method PhysicsBody2D.move_and_collide] collisions. When a [PhysicsBody2D] is moved using [method PhysicsBody2D.move_and_collide], it stops if it detects a collision with another body. If a collision is detected, a [KinematicCollision2D] object is returned.
This object contains information about the collision, including the colliding object, the remaining motion, and the collision position. This information can be used to calculate a collision response.
Returns the collision angle according to [code]up_direction[/code], which is [code]Vector2.UP[/code] by default. This value is always positive.
Returns the colliding body's attached [Object].
Returns the unique instance ID of the colliding body's attached [Object]. See [method Object.get_instance_id].
Returns the colliding body's [RID] used by the [PhysicsServer2D].
Returns the colliding body's shape.
Returns the colliding body's shape index. See [CollisionObject2D].
Returns the colliding body's velocity.
Returns the moving object's colliding shape.
Returns the colliding body's shape's normal at the point of collision.
Returns the point of collision in global coordinates.
Returns the moving object's remaining movement vector.
Returns the moving object's travel before collision.