home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-Update.iso / CDROM / Contents / READMEs / Peanuts-3 / Tools / screen / backspace / SchoolView.1.0.README < prev    next >
Encoding:
Text File  |  1996-11-09  |  1.2 KB  |  34 lines

  1. SchoolView v1.0, 17 April, 1994
  2. ===============================
  3.  
  4. This is SchoolView, a BackSpace module that implements the flocking
  5. algorithm discussed in SIGGRAPH a few years ago (1989, 1990?) and used
  6. in Jurassic Park for the herd-o-dinosaurs scene.
  7.  
  8. The code is public domain, although you'd probably need the article to
  9. follow the algorithm.  Basically, a fish's acceleration is a weighted
  10. and prioritized sum of four different accelerations.  They are (in
  11. order of priority):
  12.  
  13.         1. Collision avoidance
  14.         2. Flock centering
  15.         3. Flockmate velocity matching
  16.         4. Target seeking
  17.  
  18. The fish are implemented as a font for speed.
  19.  
  20. Hope you enjoy it.  Comments and suggestions to:
  21.  
  22. David Lambert
  23. dcl@homer.uu.panix.com (NeXTMail ok)
  24.  
  25. NOTE:
  26.  
  27. Also included is a slightly modified Thinker.m for Backspace itself.
  28. You may have noticed that Backspace no longer lets you do something
  29. with the mouse, no matter what "- ignoreMouseMovement" returns.  Well,
  30. it does, in case, you haven't noticed, and this Thinker.m fixes it, if
  31. you use it instead.  (The problem had to do with the way Backspace tried
  32. to see if it should quit displaying the view - looking for the "autoDimmed"
  33. state.)  I needed this for the "Follow Mouse" switch in SchoolView.
  34.