KinematicCollision
Reference
简要描述
KinematicBody碰撞的碰撞数据。
包含KinematicBody碰撞的碰撞数据。
该对象包含有关碰撞的信息,包括碰撞对象,剩余运动和碰撞位置。
类型 | 属性名 | 默认值 |
---|
Object | collider | |
int | collider_id | 0 |
Variant | collider_metadata | |
Object | collider_shape | |
int | collider_shape_index | 0 |
Vector3 | collider_velocity | Vector3( 0, 0, 0 ) |
Object | local_shape | |
Vector3 | normal | Vector3( 0, 0, 0 ) |
Vector3 | position | Vector3( 0, 0, 0 ) |
Vector3 | remainder | Vector3( 0, 0, 0 ) |
Vector3 | travel | Vector3( 0, 0, 0 ) |
成员说明
Default | 0 |
---|
getter | get_collider_id |
- Variant collider_metadata
getter | get_collider_metadata |
---|
Default | 0 |
---|
getter | get_collider_shape_index |
- Vector3 collider_velocity
Default | Vector3( 0, 0, 0 ) |
---|
getter | get_collider_velocity |
Default | Vector3( 0, 0, 0 ) |
---|
getter | get_normal |
Default | Vector3( 0, 0, 0 ) |
---|
getter | get_position |
Default | Vector3( 0, 0, 0 ) |
---|
getter | get_remainder |
Default | Vector3( 0, 0, 0 ) |
---|
getter | get_travel |