Simulation Details

Physical (creature's body) simulation

Bodies of creatures are divided into small pieces (at sticks' ends) being in fact ideal material points. This approach is called 'finite element method': not every point of material body is simulated - only a finite number of points, representing small volumes in the body. The simulator calculates all the forces affecting a given point: gravity, elastic reaction when connected to other points, ground reaction and friction when touching the ground, etc.
In our model some assumptions are taken to simplify calculations. It uses very primitive but fast numeric integration method, so the results are not so exact when dealing with big forces.
The picture on the right shows sample forces calculated in Framsticks physical simulator:
  • RED: gravity force
  • PURPLE: friction
  • GREEN: elastic reaction of stick joints
  • CYAN: damping inside sticks
  • BLUE: ground reaction

Neuron Net simulation

Framsticks neurons use simple weighted sum of input signals. Excitation influences neuron state, which has some inertia. Stronger signals can change the state faster than weak signals. Output is flattened to -1...+1 range using basic sigmoidal function. See examples below: (INPUT/STATE/OUTPUT)
Simple excitation. The state goes up when the input is positive and falls down when the input reaches zero. Note that in this example the neuron's state can fall below zero due to its inertia.
Short but strong impulse gives similar results to weak and long one.
In this example a strong signal causes saturation of the neuron (its state goes very high). Later signal changes do not influence the output.