void BulletPhysicsServer::area_set_collision_mask(RID p_area, uint32_t p_mask) { AreaBullet *area = area_owner.get(p_area); ERR_FAIL_COND(!area); area->set_collision_mask(p_mask); }
RID BulletPhysicsServer::area_create() { AreaBullet *area = bulletnew(AreaBullet); area->set_collision_layer(1); area->set_collision_mask(1); CreateThenReturnRID(area_owner, area) }