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.
node
integer |
geometry node associated with the visual element
|
useCreature
|
prepare Creature object
function useCreature()
|
useJoint
|
prepare Joint object
function useJoint()
|
useJointPart1
|
prepare first Part from current Joint
function useJointPart1()
|
useJointPart2
|
prepare second Part from current Joint
function useJointPart2()
|
useMechJoint
|
prepare MechJoint object
function useMechJoint()
|
useMechJointPart1
|
prepare first MechPart from current Joint
function useMechJointPart1()
|
useMechJointPart2
|
prepare second MechPart from current Joint
function useMechJointPart2()
|
useMechPart
|
prepare MechPart object
function useMechPart()
|
useModel
|
prepare Model object
function useModel()
|
useNeuro
|
prepare Neuro object
function useNeuro()
|
useNeuroJoint
|
prepare Joint from current Neuro
function useNeuroJoint()
|
useNeuroPart
|
prepare Part from current Neuro
function useNeuroPart()
|
usePart
|
prepare Part object
function usePart()
|