STATE_object_set_direction1

 

 


   Set the direction towards which the object will point. Exactly the same as the function STATE_object_set_direction()
   only that here we use just 1 parameter.
  
   Example:
  
  		double xyz[3]={10,20,30};   Note that setting 10,20,30 is the same as 1,2,3 (the engine normalizes the vector (make it a unit vector) )
  		DWORD object=STATE_object_get_first_object();
  		STATE_object_set_direction1(object, xyz);
  
   Remarks:
  
  		For more information about coordination systems and setting directions see the book (download the book free from www.3dstate.com )
   
   See also STATE_object_set_direction()
  

 

 

Go to page 1      Select API

 

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