[Plib-cvs] plib/doc/ssg branches.html,1.6,1.7
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2002-11-04 05:11:26
|
Update of /cvsroot/plib/plib/doc/ssg In directory usw-pr-cvs1:/tmp/cvs-serv27338/plib/doc/ssg Modified Files: branches.html Log Message: Added ability for Tween controllers to wrap-around their animations. Index: branches.html =================================================================== RCS file: /cvsroot/plib/plib/doc/ssg/branches.html,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- branches.html 24 Aug 2002 20:36:20 -0000 1.6 +++ branches.html 4 Nov 2002 05:11:22 -0000 1.7 @@ -82,6 +82,22 @@ will be rendered. That's a "float" quantity - so if you selectBank(2.4) then the ssgTweens will render their vertices in a position (colour, etc) that's 40% of the way between the bank 2 and bank 3. +<p> +You can also set the behaviour when the selected bank number is larger +than the number of banks in the model. This tends to happen when you +simply add some amount of to the bank selector each frame in order +to keep the animation running forever: +<pre> + + ssgTweenController::setMode ( int mode ) ; + +</pre> +'mode' can either be SSGTWEEN_STOP_AT_END or SSGTWEEN_REPEAT. +The default is STOP_AT_END - where anytime the bank selector +is larger than the actual number of banks in the ssgTween node, +it is clamped to the largest possible number. If you choose +REPEAT, then the bank number will be taken modulo the number of +banks. <H2><code>class ssgSelector</code> - A switch point,</H2> Most ssgBranch nodes represent a collection of objects that are all present in the scene at the same time. ssgSelector |