[Plib-cvs] plib/doc/sg index.html,1.14,1.15
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2002-08-11 17:53:51
|
Update of /cvsroot/plib/plib/doc/sg In directory usw-pr-cvs1:/tmp/cvs-serv29899/plib/doc/sg Modified Files: index.html Log Message: Lots of Typo's. Index: index.html =================================================================== RCS file: /cvsroot/plib/plib/doc/sg/index.html,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- index.html 11 Aug 2002 14:48:50 -0000 1.14 +++ index.html 11 Aug 2002 17:53:48 -0000 1.15 @@ -893,6 +893,8 @@ class sgParticle { sgParticle ( float mass ) ; + sgParticle ( float mass, float x, float y, float z ) ; + sgParticle ( float mass, sgVec3 position ) ; float *getPos () ; float *getVel () ; @@ -916,7 +918,10 @@ particles mass, position, velocity and the total force that's applied to it, you can also zero the force (a usual thing to do at the start of each cycle) or set the force equal to normal gravity, or you can add a force to whatever -is currently being applied. +is currently being applied. The constructor function requires that you +pass in the mass and (optionally) the initial position. The mass of a +particle cannot ever be zero because you'll get divide-by-zero errors +all over the place if you do. <pre> class sgSpringDamper |