Difference between revisions of ".up"

From WikiManual
Jump to: navigation, search
m (one step...)
Line 1: Line 1:
[[.up]] is a [[movement]] [[command]].
+
[[.up]] (1) is a [[movement]] [[Sysvar]].
Without these, there could be no movement, just bouncing, gliding and flowing.
 
  
==[[Sysvars]]:==
+
Without these, there could be no movement, just bouncing, gliding, flowing and tie-pushing.
 +
 
 +
==[[Sysvar]]s:==
  
 
{{movement}}
 
{{movement}}
Line 25: Line 26:
  
 
More details at [[movement#Technical Details:|Movement]].
 
More details at [[movement#Technical Details:|Movement]].
 
==Movement energy costs:==
 
[[Energy]] costs to the DarwinBot are calculated based on the input values. These vary with robot [[mass]] and applied acceleration but cannot exceed 100 energy points per vector per cycle.
 
 
==Activation hierarchy:==
 
Movement commands are executed after [[rotation]] commands
 
 
==Associated Keywords:==
 
[[.aimsx]] [[.aimdx]] [[.vel]]
 

Revision as of 14:38, 23 December 2005

.up (1) is a movement Sysvar.

Without these, there could be no movement, just bouncing, gliding, flowing and tie-pushing.

Sysvars:

Movement:

.aimsx 6 .aimdx 5
.up 1
.sx 3 Veggietransparent.gif .dx 4
.dn 2
.aim 18 .setaim 19
.maxvel 11
.setboy 314 .rdboy 315

Forwards compatibility note:

aimdx is the old name for aimright

aimsx is the old name for aimleft

Syntax:

  • .up accelerates the robot forward in the direction that he is facing.
  • .dn accelerates the robot backward from the direction he is facing.
  • .sx
  • .dx

Example:

cond
start
10 .up store
stop

A robot with this gene would constantly accelerate forward at a rate of 10 per turn. That is to say that his forward velocity would increase by a value of 10. If he should rotate then the direction in which the acceleration takes place would also change.

Technical Details:

Movement values get cut above 1000 and below -1000, then added up to a single vector incluging tie and other propulsion vectors, then the vector gets cut to a lenght of 40 as maximum aceleration.

More details at Movement.