Exemplo n.º 1
0
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);
}
Exemplo n.º 2
0
void BulletPhysicsServer::area_remove_shape(RID p_area, int p_shape_idx) {
	AreaBullet *area = area_owner.get(p_area);
	ERR_FAIL_COND(!area);
	return area->remove_shape(p_shape_idx);
}