Update of /cvsroot/plib/plib/src/sg
In directory usw-pr-cvs1:/tmp/cvs-serv11571/plib/src/sg
Modified Files:
sg.h
Log Message:
Added some more convenience functions.
Index: sg.h
===================================================================
RCS file: /cvsroot/plib/plib/src/sg/sg.h,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- sg.h 11 Aug 2002 18:20:30 -0000 1.42
+++ sg.h 11 Aug 2002 18:34:54 -0000 1.43
@@ -2690,6 +2690,10 @@
void setVel ( sgVec3 v ) { sgCopyVec3 ( vel , v ) ; }
void setForce ( sgVec3 f ) { sgCopyVec3 ( force, f ) ; }
+ void setPos ( float x, float y, float z ) { sgSetVec3 ( pos ,x,y,z ) ; }
+ void setVel ( float x, float y, float z ) { sgSetVec3 ( vel ,x,y,z ) ; }
+ void setForce ( float x, float y, float z ) { sgSetVec3 ( force,x,y,z ) ; }
+
void setOneOverMass ( float oom ) { ooMass = oom ; }
void setMass ( float m )
|