Update of /cvsroot/plib/plib/examples/src/ssg/water
In directory usw-pr-cvs1:/tmp/cvs-serv27221/plib/examples/src/ssg/water
Modified Files:
water.cxx
Log Message:
Updated documentation for ssgAux.
Fixed a bug in the fountain in the water demo.
Added some syntactic sugar to dynamics.
Index: water.cxx
===================================================================
RCS file: /cvsroot/plib/plib/examples/src/ssg/water/water.cxx,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- water.cxx 9 Aug 2002 19:55:44 -0000 1.13
+++ water.cxx 13 Aug 2002 05:11:33 -0000 1.14
@@ -523,13 +523,6 @@
}
-static void droplet_update ( float dt, SPS *, int, ssgaParticle *p )
-{
- sgAddScaledVec3 ( p->vel, p->acc, dt ) ;
- sgAddScaledVec3 ( p->pos, p->vel, dt ) ;
-}
-
-
void init_states ()
{
plinth_state = new ssgSimpleState () ;
@@ -603,8 +596,7 @@
fountain = new ssgaParticleSystem ( 1000, 100, 500, TRUE,
0.2, 1000,
- droplet_create,
- droplet_update, NULL ) ;
+ droplet_create ) ;
fountain -> setState ( splash_state ) ;
/* Set up some interesting defaults. */
|