sdleiF | ||
XYZ bboxCenter | Bounding box center | |
float c_velocity | Recent period velocitySee http://www.framsticks.com/a/al_params.html#exper-perfcalc | |
float c_vertpos | Recent period vertical positionSee http://www.framsticks.com/a/al_params.html#exper-perfcalc | |
float c_vertvelocity | Recent period vertical velocitySee http://www.framsticks.com/a/al_params.html#exper-perfcalc | |
float center_x | center.xCenter of gravity | |
float center_y | center.yCenter of gravity | |
float center_z | center.zCenter of gravity | |
Dictionary data | Custom fields dictionary | |
float distance | DistanceSee http://www.framsticks.com/a/al_params.html#exper-perfcalc | |
float energy | Energy | |
float energy0 | Starting energy | |
multiline string genotype | Genotype | |
int gnum | Generation | |
float idleen | Idle energy consumptionThe amount of energy subtracted from the energy of this creature in each simulation step, as in: cr.energy-=cr.idleen; | |
multiline string info | InfoAdditional info or comments | |
int lifespan | LifespanWhile the creature's performance measurement is enabled, the creature's lifespan is incremented in "performance sampling period" intervals. | |
string name | Name | |
int nn_active0 .. 2 | NN activeThe initial value of this property is taken from Population.nn_active | |
int num | Ordinal numberActs as a unique identifier, but less strict than "uid". Unlike "uid", "num" can be changed and therefore can be saved and restored, providing persistence and continuity beyond a single application run. "num" is only guaranteed to be unique if it is autogenerated and not changed by the user, otherwise it is user's responsibility to manage the proper values of "num". Autogenerated "num" is always equal to the largest previously used "num" + 1. The largest previously used value is stored in Simulator.last_creature_num and can be changed as well (and is automatically saved and restored as a part of the Simulator state). Limitation: being a 32-bit integer, "num" overflows at about 2 billion counts. See also: uid | |
Orient orient | OrientationBy convention, the orientation of the creature is equal to the orientation of its first Part. | |
int othermask0 .. 2147483647 default=0 | Collision mask (other)Creature's othermask is set according to the Creature's Population.othermask. See Population.selfmask for detailed information about collision handling. | |
int perf_measuring0 .. 2 | Performance calculationThe initial value of this property is taken from Population.initial_perf_measuring | |
int physics_active0 .. 1 (false/true) default=1 | Body simulation(Physical) body simulation can be disabled for individual objects which makes them immovable. Disabled objects can still participate in collisions depending on their collisions masks. The initial value of this property is taken from Population.initial_physics_active. Bugs: the standard collision handler does not work for disabled objects when ODE simulation is used. It means that these objects won't physically interact with other objects. The custom (scripting) handlers work as expected. | |
int self_collisions0 .. 1 (false/true) | Self-collisionsEnable/disable detection of self-collisions (within a creature body). They can only occur when using the ODE simulation engine. If enabled, the creature will have its sticks collide during lifespan. The initial value of this property is taken from Population.initial_self_collisions. | |
int selfmask0 .. 2147483647 default=0 | Collision mask (self)Creature's selfmask is set according to the Creature's Population.selfmask. See Population.selfmask for detailed information about collision handling. | |
int steps_after_birth | Simulation steps after birth"Birth" is the moment when the simulation of a creature starts. | |
int steps_in_lifespan | Simulation steps in lifespan"Lifespan" is the period during simulation of a creature when its performance measurement is enabled. | |
string uid | #Unique identifier that is generated on object creation. "uid" is only unique during a single application run. Subsequent runs generate the same sequence of uid values. See also: num | |
untyped user1 | User field 1 | |
untyped user2 | User field 2 | |
untyped user3 | User field 3 | |
float velocity | Average velocitySee http://www.framsticks.com/a/al_params.html#exper-perfcalc | |
float vertpos | Average vertical positionSee http://www.framsticks.com/a/al_params.html#exper-perfcalc | |
float vertvel | Average vertical velocitySee http://www.framsticks.com/a/al_params.html#exper-perfcalc | |
snoitcnuF | ||
function new()returns Creature | create new object |
Global context |