bodysim
integer, 0 .. 1 (false/true) default=1 |
Body simulation Enable/disable physical body simulation. This is the initial value of Creature.bodysim for all objects created in this group. For details, see the documentation of Creature.bodysim. |
colmask
integer, 0 .. 65535 default=0 |
Collision mask (deprecated) DEPRECATED. You should use selfmask and othermask (these masks are also much easier to understand than the old colmask field). |
death
integer, 0 .. 1 (false/true) default=1 |
Death Do creatures die when no energy? |
em_dyn
float, 0 .. 1 default=0 |
Muscle dynamic work Energy requirements for a muscle |
em_stat
float, 0 .. 1 default=0 |
Muscle static work Energy requirements for a muscle |
en_assim
float, 0 .. 1 default=0 |
Assimilation productivity Maximal energy gain produced by a vertical specialized stick. |
enableperf
integer, 0 .. 2 |
Performance calculation Stabilization means no significant movement during a specified period of time. |
energy
integer, 0 .. 1 (false/true) default=1 |
Energy calculation If turned off, creature's energy will be constant |
index
integer |
group index |
killnostable
integer, 0 .. 10000000 default=1000000 |
Kill if no stabilization after Creatures that fail to stabilize after the specified waiting period (e.g. because they are continuously rolling) will be killed. 0 disables this feature. |
name
string |
Group name |
nnsim
integer, 0 .. 2 |
Neural net simulation Stabilization means no significant movement during a specified period of time. |
othermask
integer, 0 .. 2147483647 default=0 |
Collision mask (other) See selfmask. |
perfperiod
integer, 0 .. 1000000 default=100 |
Performance sampling period Defines how often onUpdate() events are called. Also used to compute partial performance of creatures (distance, speed, etc.) and to determine stabilization. |
selfcol
integer, 0 .. 1 (false/true) default=0 |
Detect self-collisions Detect collisions within creature bodies (only applicable for the ODE simulation engine). This is the initial value of Creature.selfcol for all objects created in this group. If enabled, creatures with self-colliding genotypes are not born, and others will have their sticks collide during lifespan. |
selfmask
integer, 0 .. 2147483647 default=0 |
Collision mask (self) Collisions between objects can be handled in two ways: |
size
integer |
Number of creatures |
stabilperiod
integer, 0 .. 1000000 default=100 |
Sampling period while waiting "Performance sampling period" for the stabilization phase. |
stabledist
float, 0 .. 1 default=0.01 |
Allowed distance to be stable A creature is considered stabilized when its center of gravity stays within the specified distance after the "Sampling period while waiting" has elapsed. |
createFromGeno
returns Creature |
function createFromGeno(Geno)uses the supplied Geno object |
createFromGenotype
returns Creature |
function createFromGenotype()uses the selected Genotype object |
createFromString
returns Creature |
function createFromString(string genotype)uses the supplied string argument |
delete
doesn't return a value |
function delete(integer creature_index)delete creature |
findCreatureAt
returns Creature |
function findCreatureAt(Vector point, Vector vector) |
findUID
returns integer |
find creature by UID function findUID(string uid) |
get
returns Creature |
get creature object function get(integer index) |
kill
doesn't return a value |
function kill(integer creature_index)kill creature |
senseCreaturesProperty
returns float |
senseCreaturesProperty function senseCreaturesProperty(float x, float y, float z, string propertyname, Creature exclude)arguments: |
| Global context |