Groups > Design > 3dsmax 8 > Re: Crowd: delegates behavior help




Re: Crowd: delegates behavior help

Re: Crowd: delegates behavior help
Sun, 30 Sep 2007 23:44:04 +000
"A cognitive controller is represented as a graph with states and
transitions. A state consists of a set of behaviors. Between states are
transitions from one state to another. The transition goes in the direction of
the transition arrow.
Each transition includes, as part of its definition, a test to determine whether
a delegate should pass from one state to another. The test is enacted by a
simple MAXScript.

This is an example of a cognitive controller:

fn Trans1 del t = (
   get_dist = distance del.simpos $Sphere01.pos
   print (get_dist)
   if get_dist < 600 then 1 else 0
  )

It checks when the delegate is closer than 600 units from Sphere01 and then
Post Reply
about | contact