Collision data for [method PhysicsBody3D.move_and_collide] collisions.
Contains collision data for [method PhysicsBody3D.move_and_collide] collisions. When a [PhysicsBody3D] is moved using [method PhysicsBody3D.move_and_collide], it stops if it detects a collision with another body. If a collision is detected, a [KinematicCollision3D] 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.
The collision angle according to [code]up_direction[/code], which is [code]Vector3.UP[/code] by default. This value is always positive.
Returns the collider by index (the latest by default).
Returns the collider ID by index (the latest by default).
Returns the collider RID by index (the latest by default).
Returns the collider shape by index (the latest by default).
Returns the collider shape index by index (the latest by default).
Returns the collider velocity by index (the latest by default).
Returns the collider velocity by index (the latest by default).
Returns the collider normal by index (the latest by default).
Returns the collider collision point by index (the latest by default).
The colliding body.
The colliding body's unique instance ID. See [method Object.get_instance_id].
The colliding body's [RID] used by the [PhysicsServer3D].
The colliding body's shape.
The colliding shape's index. See [CollisionObject3D].
The colliding object's velocity.
The moving object's colliding shape.
The colliding body's shape's normal at the point of collision.
The point of collision, in global coordinates.
The moving object's remaining movement vector.
The distance the moving object traveled before collision.