STATE_engine_get_number_of_collisions

 

 


  Counts how many polygons we will cross going from point1 to point2
  in addition it calculates the average normal of all the polygons between the two points
  
   Parameters:
  
  	point1,point2: A line (actually a segment) starting at point1 and ending at point2
  
  	combined_normal: The combined normal of all the intersected polygons.
  					 if for example we try to move through the corner of a room.
  					 The corner point is created from three intersectiong planes
  					 The combined normal will be the avareage of the three normals.
  
   Return value: The number of polygons that are intersected when going from point1 to point2
  
   Example:
  		double point1[3]={10,0,0};
  		double point2[3]={100,200,300};
  		double combined_normal[3];
  		int num_of_collisions;
  		num_of_collisions=STATE_engine_get_number_of_collisions(point1, point2, combined_normal);

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com