Area2D
以下为我对于官方文档的翻译以及使用情况,3.0版本的文档
Area2D官方文档
继承: CollisionObject2D < Node2D < CanvasItem < Node < Object
类型: Core
简要说明
用于检测和2D物理影响的2D区域。
成员函数
返回类型 | 函数 |
---|---|
bool | get_collision_layer_bit ( int bit ) const |
bool | get_collision_mask_bit ( int bit ) const |
Array | get_overlapping_areas ( ) const |
Array | get_overlapping_bodies ( ) const |
bool | overlaps_area ( Node area ) const |
bool | overlaps_body ( Node body ) const |
void | set_collision_layer_bit ( int bit, bool value ) |
void | set_collision_mask_bit ( int bit, bool value ) |
信号
- area_entered ( Object area )
当另一个区域进入时发出。
- area_exited (</