mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	
							parent
							
								
									b44cb4e3b9
								
							
						
					
					
						commit
						d28763a4c1
					
				
					 138 changed files with 1203 additions and 1194 deletions
				
			
		|  | @ -46,7 +46,7 @@ BroadPhaseSW::ID BroadPhaseBasic::create(CollisionObjectSW *p_object, int p_subi | |||
| 	return current; | ||||
| } | ||||
| 
 | ||||
| void BroadPhaseBasic::move(ID p_id, const Rect3 &p_aabb) { | ||||
| void BroadPhaseBasic::move(ID p_id, const AABB &p_aabb) { | ||||
| 
 | ||||
| 	Map<ID, Element>::Element *E = element_map.find(p_id); | ||||
| 	ERR_FAIL_COND(!E); | ||||
|  | @ -109,7 +109,7 @@ int BroadPhaseBasic::cull_point(const Vector3 &p_point, CollisionObjectSW **p_re | |||
| 
 | ||||
| 	for (Map<ID, Element>::Element *E = element_map.front(); E; E = E->next()) { | ||||
| 
 | ||||
| 		const Rect3 aabb = E->get().aabb; | ||||
| 		const AABB aabb = E->get().aabb; | ||||
| 		if (aabb.has_point(p_point)) { | ||||
| 
 | ||||
| 			p_results[rc] = E->get().owner; | ||||
|  | @ -129,7 +129,7 @@ int BroadPhaseBasic::cull_segment(const Vector3 &p_from, const Vector3 &p_to, Co | |||
| 
 | ||||
| 	for (Map<ID, Element>::Element *E = element_map.front(); E; E = E->next()) { | ||||
| 
 | ||||
| 		const Rect3 aabb = E->get().aabb; | ||||
| 		const AABB aabb = E->get().aabb; | ||||
| 		if (aabb.intersects_segment(p_from, p_to)) { | ||||
| 
 | ||||
| 			p_results[rc] = E->get().owner; | ||||
|  | @ -142,13 +142,13 @@ int BroadPhaseBasic::cull_segment(const Vector3 &p_from, const Vector3 &p_to, Co | |||
| 
 | ||||
| 	return rc; | ||||
| } | ||||
| int BroadPhaseBasic::cull_aabb(const Rect3 &p_aabb, CollisionObjectSW **p_results, int p_max_results, int *p_result_indices) { | ||||
| int BroadPhaseBasic::cull_aabb(const AABB &p_aabb, CollisionObjectSW **p_results, int p_max_results, int *p_result_indices) { | ||||
| 
 | ||||
| 	int rc = 0; | ||||
| 
 | ||||
| 	for (Map<ID, Element>::Element *E = element_map.front(); E; E = E->next()) { | ||||
| 
 | ||||
| 		const Rect3 aabb = E->get().aabb; | ||||
| 		const AABB aabb = E->get().aabb; | ||||
| 		if (aabb.intersects(p_aabb)) { | ||||
| 
 | ||||
| 			p_results[rc] = E->get().owner; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ferenc Arn
						Ferenc Arn