Class PrismaticJoint

java.lang.Object
com.codename1.gaming.physics.box2d.dynamics.joints.Joint
com.codename1.gaming.physics.box2d.dynamics.joints.PrismaticJoint

public class PrismaticJoint extends Joint
  • Field Details

    • m_localAnchorA

      protected final Vec2 m_localAnchorA
    • m_localAnchorB

      protected final Vec2 m_localAnchorB
    • m_localXAxisA

      protected final Vec2 m_localXAxisA
    • m_localYAxisA

      protected final Vec2 m_localYAxisA
    • m_referenceAngle

      protected float m_referenceAngle
  • Constructor Details

  • Method Details

    • getLocalAnchorA

      public Vec2 getLocalAnchorA()
    • getLocalAnchorB

      public Vec2 getLocalAnchorB()
    • getAnchorA

      public void getAnchorA(Vec2 argOut)
      Specified by:
      getAnchorA in class Joint
    • getAnchorB

      public void getAnchorB(Vec2 argOut)
      Specified by:
      getAnchorB in class Joint
    • getReactionForce

      public void getReactionForce(float inv_dt, Vec2 argOut)
      Specified by:
      getReactionForce in class Joint
    • getReactionTorque

      public float getReactionTorque(float inv_dt)
      Specified by:
      getReactionTorque in class Joint
    • getJointSpeed

      public float getJointSpeed()
    • getJointTranslation

      public float getJointTranslation()
    • isLimitEnabled

      public boolean isLimitEnabled()
    • enableLimit

      public void enableLimit(boolean flag)
    • getLowerLimit

      public float getLowerLimit()
    • getUpperLimit

      public float getUpperLimit()
    • setLimits

      public void setLimits(float lower, float upper)
    • isMotorEnabled

      public boolean isMotorEnabled()
    • enableMotor

      public void enableMotor(boolean flag)
    • setMotorSpeed

      public void setMotorSpeed(float speed)
    • getMotorSpeed

      public float getMotorSpeed()
    • setMaxMotorForce

      public void setMaxMotorForce(float force)
    • getMotorForce

      public float getMotorForce(float inv_dt)
    • getMaxMotorForce

      public float getMaxMotorForce()
    • getReferenceAngle

      public float getReferenceAngle()
    • getLocalAxisA

      public Vec2 getLocalAxisA()
    • initVelocityConstraints

      public void initVelocityConstraints(SolverData data)
      Specified by:
      initVelocityConstraints in class Joint
    • solveVelocityConstraints

      public void solveVelocityConstraints(SolverData data)
      Specified by:
      solveVelocityConstraints in class Joint
    • solvePositionConstraints

      public boolean solvePositionConstraints(SolverData data)
      Specified by:
      solvePositionConstraints in class Joint