Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
KinematicCollision¶
Collision data for KinematicBody collisions.
Descripción¶
Contains collision data for KinematicBody collisions. When a KinematicBody is moved using KinematicBody.move_and_collide, it stops if it detects a collision with another body. If a collision is detected, a KinematicCollision 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.
Propiedades¶
|
||
|
||
|
||
|
||
|
||
|
||
|
Métodos¶
Descripciones de Propiedades¶
Object collider
Getter |
get_collider() |
El cuerpo en colisión.
int collider_id
Default |
|
Getter |
get_collider_id() |
La identificación de la instancia única del cuerpo que colisiona. Ver Object.get_instance_id.
Variant collider_metadata
Getter |
get_collider_metadata() |
Los metadatos del cuerpo en colisión. Ver Object.
RID collider_rid
Getter |
get_collider_rid() |
The colliding body's RID used by the PhysicsServer.
Object collider_shape
Getter |
get_collider_shape() |
La forma del cuerpo en colisión.
int collider_shape_index
Default |
|
Getter |
get_collider_shape_index() |
The colliding shape's index. See CollisionObject.
Vector3 collider_velocity
Default |
|
Getter |
get_collider_velocity() |
La velocidad del objeto que colisiona.
Object local_shape
Getter |
get_local_shape() |
La forma de colisión del objeto en movimiento.
Vector3 normal
Default |
|
Getter |
get_normal() |
La normal de la forma del cuerpo que choca en el punto de colisión.
Vector3 position
Default |
|
Getter |
get_position() |
El punto de colisión, en coordenadas globales.
Vector3 remainder
Default |
|
Getter |
get_remainder() |
El vector de movimiento restante del objeto en movimiento.
Vector3 travel
Default |
|
Getter |
get_travel() |
La distancia que el objeto en movimiento viajó antes de la colisión.
Descripciones de Métodos¶
The collision angle according to up_direction
, which is Vector3.UP
by default. This value is always positive.