void BulletPhysicsServer::area_clear_shapes(RID p_area) { AreaBullet *area = area_owner.get(p_area); ERR_FAIL_COND(!area); for (int i = area->get_shape_count(); 0 < i; --i) area->remove_shape(0); }
int BulletPhysicsServer::area_get_shape_count(RID p_area) const { AreaBullet *area = area_owner.get(p_area); ERR_FAIL_COND_V(!area, 0); return area->get_shape_count(); }