Package springbots :: Module springbot
[hide private]

Module springbot

source code

This modules implements the springbot, a creature builded with spring and nodes.

Classes [hide private]
  Springbot
Springbot: Creature builded with nodes, which are masses, connected by springs which act like links between nodes pulling them together.
Functions [hide private]
 
store_xml(springbots, outfile=sys.stdin)
Writes a set os springbots into a xml
source code
 
isfloat(s)
Tests if a string is representing a float
source code
 
load_xml(arq=sys.stdin, limit=None)
Reads an xml into a set of springbots
source code
Variables [hide private]
  HAS_PYGAME = True
  AIR_RESISTANCE = 0.01
  ANGLE_STEP = 0.025
  DOWN = 2
  ELASTICITY = 0.6
  GRAVITY = (0, 0.3)
  LEFT = 3
  MAX_NORMAL = 400.0
  NODE_WEIGHT = 1.26
  RADIUS = 8
  RIGHT = 4
  UP = 1
  VISCOSITY = 0.05