[Plib-cvs] plib/src/sg sg.h,1.39,1.40
Brought to you by:
sjbaker
|
From: Steve B. <sj...@us...> - 2002-08-11 16:18:43
|
Update of /cvsroot/plib/plib/src/sg
In directory usw-pr-cvs1:/tmp/cvs-serv848/plib/src/sg
Modified Files:
sg.h
Log Message:
Added a more friendly constructor for sgParticle.
Index: sg.h
===================================================================
RCS file: /cvsroot/plib/plib/src/sg/sg.h,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- sg.h 11 Aug 2002 14:48:50 -0000 1.39
+++ sg.h 11 Aug 2002 16:18:40 -0000 1.40
@@ -2664,10 +2664,18 @@
public:
- sgParticle ( float mass )
+ sgParticle ( float mass, sgVec3 _pos )
{
- setMass ( mass ) ;
- sgZeroVec3 ( pos ) ;
+ setMass ( mass ) ;
+ sgCopyVec3 ( pos, _pos ) ;
+ sgZeroVec3 ( vel ) ;
+ sgZeroVec3 ( force ) ;
+ }
+
+ sgParticle ( float mass, float x = 0.0f, float y = 0.0f, float z = 0.0f )
+ {
+ setMass ( mass ) ;
+ sgSetVec3 ( pos, x, y, z) ;
sgZeroVec3 ( vel ) ;
sgZeroVec3 ( force ) ;
}
|