Element class in Visual style definition

Information about current visual element: Part, Joint or Neuro. To be used in _build() or _update() functions.

This is a link between a creature's element (part/joint/neuron) and the geometry object (Element.node).
Calling Element.useXXX() functions connects the static object references (Creature, Model, Part, Joint, Neuro, MechPart, MechJoint) to the proper creature elements. All these objects are invalid before doing that! E.g. you have to call "Element.useCreature()" before referring to "Creature.energy" in your _build() and _update() functions.

14 members:

integer node
integer

geometry node associated with the visual element

function useCreature

prepare Creature object

function useCreature()
function useJoint

prepare Joint object

function useJoint()
function useJointPart1

prepare first Part from current Joint

function useJointPart1()
function useJointPart2

prepare second Part from current Joint

function useJointPart2()
function useMechJoint

prepare MechJoint object

function useMechJoint()
function useMechJointPart1

prepare first MechPart from current Joint

function useMechJointPart1()
function useMechJointPart2

prepare second MechPart from current Joint

function useMechJointPart2()
function useMechPart

prepare MechPart object

function useMechPart()
function useModel

prepare Model object

function useModel()
function useNeuro

prepare Neuro object

function useNeuro()
function useNeuroJoint

prepare Joint from current Neuro

function useNeuroJoint()
function useNeuroPart

prepare Part from current Neuro

function useNeuroPart()
function usePart

prepare Part object

function usePart()

Global context>>Experiment definition>>Visual style definition