Module groPhysics

Class FlexNode

All Implemented Interfaces:
Transformation, Pickable, Polygonizable, Raytraceable, Renderable, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable

public class FlexNode extends Cylinder
See Also:
  • Field Details

    • mass

      public float mass
    • stiffnessT

      public float stiffnessT
    • stiffnessX

      public float stiffnessX
    • stiffnessY

      public float stiffnessY
    • stiffnessZ

      public float stiffnessZ
    • rotDamping

      public float rotDamping
    • linDamping

      public float linDamping
    • linBounce

      public float linBounce
    • rotBounce

      public float rotBounce
    • $TYPE

      public static final Node.NType $TYPE
    • mass$FIELD

      public static final Node.NType.Field mass$FIELD
    • stiffnessT$FIELD

      public static final Node.NType.Field stiffnessT$FIELD
    • stiffnessX$FIELD

      public static final Node.NType.Field stiffnessX$FIELD
    • stiffnessY$FIELD

      public static final Node.NType.Field stiffnessY$FIELD
    • stiffnessZ$FIELD

      public static final Node.NType.Field stiffnessZ$FIELD
    • rotDamping$FIELD

      public static final Node.NType.Field rotDamping$FIELD
    • linDamping$FIELD

      public static final Node.NType.Field linDamping$FIELD
    • linBounce$FIELD

      public static final Node.NType.Field linBounce$FIELD
    • rotBounce$FIELD

      public static final Node.NType.Field rotBounce$FIELD
  • Constructor Details

    • FlexNode

      public FlexNode()
    • FlexNode

      public FlexNode(float length, float radius)
    • FlexNode

      public FlexNode(float length, float radius, float mass)
  • Method Details

    • getStiffness

      public float getStiffness(int i)
    • getJoint

      public com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint getJoint()
    • setJoint

      public void setJoint(com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint joint)
    • ageJoint

      public void ageJoint(double rate)
      adds a proportion of the joint displacement back into the joint frame to fix the angle as the stem ages
      Parameters:
      rate -
    • initBottomJointFrame

      public com.bulletphysics.linearmath.Transform initBottomJointFrame()
      returns a transform corresponding to the initial bottom joint frame relative to the centre of mass NB this is the frame when the joint is NOT under tension
      Returns:
      Transform
    • getBottomJointFrame

      public com.bulletphysics.linearmath.Transform getBottomJointFrame()
      returns a transform corresponding to the bottom joint frame relative to the centre of mass NB this is the frame when the joint is NOT under tension
      Returns:
      Transform
    • getTopJointFrame

      public com.bulletphysics.linearmath.Transform getTopJointFrame()
      returns a transform corresponding to the top joint position relative to the centre of mass
      Returns:
      Transfrom
    • getPreviousFlexNode

      public FlexNode getPreviousFlexNode()
      Find the previous FlexNode in the current branch returns null if nothing is found
      Returns:
      FlexNode
    • getParentFlexNode

      public FlexNode getParentFlexNode()
      Find the previous FlexNode in the tree by searching the branch first, then hierarchically through it's parents returns null if nothing is found
      Returns:
      FlexNode
    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Cylinder
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Cylinder
      Returns:
      new instance of class of this node
    • getMass

      public float getMass()
    • setMass

      public void setMass(float value)
    • getStiffnessT

      public float getStiffnessT()
    • setStiffnessT

      public void setStiffnessT(float value)
    • getStiffnessX

      public float getStiffnessX()
    • setStiffnessX

      public void setStiffnessX(float value)
    • getStiffnessY

      public float getStiffnessY()
    • setStiffnessY

      public void setStiffnessY(float value)
    • getStiffnessZ

      public float getStiffnessZ()
    • setStiffnessZ

      public void setStiffnessZ(float value)
    • getRotDamping

      public float getRotDamping()
    • setRotDamping

      public void setRotDamping(float value)
    • getLinDamping

      public float getLinDamping()
    • setLinDamping

      public void setLinDamping(float value)
    • getLinBounce

      public float getLinBounce()
    • setLinBounce

      public void setLinBounce(float value)
    • getRotBounce

      public float getRotBounce()
    • setRotBounce

      public void setRotBounce(float value)