Class ODENode

java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.pose.Pose
com.marginallyclever.ro3.node.nodes.odenode.ODENode
All Implemented Interfaces:
PoseChangeListener, EventListener
Direct Known Subclasses:
CreatureController, ODEBody, ODEJoint, ODEPlane

public class ODENode extends Pose

Base class for all Node that implement ODE4J.

ODE Nodes like ODEHinge need to be able to find the subject nodes to which the hinge connects. These subjects are not guaranteed to exist during load. They *are* guaranteed at the first call to update(double) after loading.

This class is responsible for calling onFirstUpdate() once at the start of the first update(double). No physics calculations should be done in the constructor or in onAttach().

the flag to run onFirstUpdate() again will be reset if:

  • the node is detached
  • the node is deserialized