Class SliderJoint

java.lang.Object
com.jme3.bullet.joints.PhysicsJoint
com.jme3.bullet.joints.SliderJoint
All Implemented Interfaces:
Savable

public class SliderJoint extends PhysicsJoint
From bullet manual:
The slider constraint allows the body to rotate around one axis and translate along this axis.
  • Field Details Link icon

    • rotA Link icon

      protected Matrix3f rotA
    • rotB Link icon

      protected Matrix3f rotB
    • useLinearReferenceFrameA Link icon

      protected boolean useLinearReferenceFrameA
  • Constructor Details Link icon

    • SliderJoint Link icon

      protected SliderJoint()
    • SliderJoint Link icon

      public SliderJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Matrix3f rotA, Matrix3f rotB, boolean useLinearReferenceFrameA)
      Parameters:
      nodeA - the body for the A end (not null, alias created)
      nodeB - the body for the B end (not null, alias created)
      pivotA - local translation of the joint connection point in node A
      pivotB - local translation of the joint connection point in node B
      rotA - the joint orientation in A's local coordinates (not null, alias unaffected)
      rotB - the joint orientation in B's local coordinates (not null, alias unaffected)
      useLinearReferenceFrameA - true→use body A, false→use body B
    • SliderJoint Link icon

      public SliderJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, boolean useLinearReferenceFrameA)
      Parameters:
      nodeA - the body for the A end (not null, alias created)
      nodeB - the body for the B end (not null, alias created)
      pivotA - local translation of the joint connection point in node A
      pivotB - local translation of the joint connection point in node B
      useLinearReferenceFrameA - true→use body A, false→use body B
  • Method Details Link icon

    • getLowerLinLimit Link icon

      public float getLowerLinLimit()
    • setLowerLinLimit Link icon

      public void setLowerLinLimit(float lowerLinLimit)
    • getUpperLinLimit Link icon

      public float getUpperLinLimit()
    • setUpperLinLimit Link icon

      public void setUpperLinLimit(float upperLinLimit)
    • getLowerAngLimit Link icon

      public float getLowerAngLimit()
    • setLowerAngLimit Link icon

      public void setLowerAngLimit(float lowerAngLimit)
    • getUpperAngLimit Link icon

      public float getUpperAngLimit()
    • setUpperAngLimit Link icon

      public void setUpperAngLimit(float upperAngLimit)
    • getSoftnessDirLin Link icon

      public float getSoftnessDirLin()
    • setSoftnessDirLin Link icon

      public void setSoftnessDirLin(float softnessDirLin)
    • getRestitutionDirLin Link icon

      public float getRestitutionDirLin()
    • setRestitutionDirLin Link icon

      public void setRestitutionDirLin(float restitutionDirLin)
    • getDampingDirLin Link icon

      public float getDampingDirLin()
    • setDampingDirLin Link icon

      public void setDampingDirLin(float dampingDirLin)
    • getSoftnessDirAng Link icon

      public float getSoftnessDirAng()
    • setSoftnessDirAng Link icon

      public void setSoftnessDirAng(float softnessDirAng)
    • getRestitutionDirAng Link icon

      public float getRestitutionDirAng()
    • setRestitutionDirAng Link icon

      public void setRestitutionDirAng(float restitutionDirAng)
    • getDampingDirAng Link icon

      public float getDampingDirAng()
    • setDampingDirAng Link icon

      public void setDampingDirAng(float dampingDirAng)
    • getSoftnessLimLin Link icon

      public float getSoftnessLimLin()
    • setSoftnessLimLin Link icon

      public void setSoftnessLimLin(float softnessLimLin)
    • getRestitutionLimLin Link icon

      public float getRestitutionLimLin()
    • setRestitutionLimLin Link icon

      public void setRestitutionLimLin(float restitutionLimLin)
    • getDampingLimLin Link icon

      public float getDampingLimLin()
    • setDampingLimLin Link icon

      public void setDampingLimLin(float dampingLimLin)
    • getSoftnessLimAng Link icon

      public float getSoftnessLimAng()
    • setSoftnessLimAng Link icon

      public void setSoftnessLimAng(float softnessLimAng)
    • getRestitutionLimAng Link icon

      public float getRestitutionLimAng()
    • setRestitutionLimAng Link icon

      public void setRestitutionLimAng(float restitutionLimAng)
    • getDampingLimAng Link icon

      public float getDampingLimAng()
    • setDampingLimAng Link icon

      public void setDampingLimAng(float dampingLimAng)
    • getSoftnessOrthoLin Link icon

      public float getSoftnessOrthoLin()
    • setSoftnessOrthoLin Link icon

      public void setSoftnessOrthoLin(float softnessOrthoLin)
    • getRestitutionOrthoLin Link icon

      public float getRestitutionOrthoLin()
    • setRestitutionOrthoLin Link icon

      public void setRestitutionOrthoLin(float restitutionOrthoLin)
    • getDampingOrthoLin Link icon

      public float getDampingOrthoLin()
    • setDampingOrthoLin Link icon

      public void setDampingOrthoLin(float dampingOrthoLin)
    • getSoftnessOrthoAng Link icon

      public float getSoftnessOrthoAng()
    • setSoftnessOrthoAng Link icon

      public void setSoftnessOrthoAng(float softnessOrthoAng)
    • getRestitutionOrthoAng Link icon

      public float getRestitutionOrthoAng()
    • setRestitutionOrthoAng Link icon

      public void setRestitutionOrthoAng(float restitutionOrthoAng)
    • getDampingOrthoAng Link icon

      public float getDampingOrthoAng()
    • setDampingOrthoAng Link icon

      public void setDampingOrthoAng(float dampingOrthoAng)
    • isPoweredLinMotor Link icon

      public boolean isPoweredLinMotor()
    • setPoweredLinMotor Link icon

      public void setPoweredLinMotor(boolean poweredLinMotor)
    • getTargetLinMotorVelocity Link icon

      public float getTargetLinMotorVelocity()
    • setTargetLinMotorVelocity Link icon

      public void setTargetLinMotorVelocity(float targetLinMotorVelocity)
    • getMaxLinMotorForce Link icon

      public float getMaxLinMotorForce()
    • setMaxLinMotorForce Link icon

      public void setMaxLinMotorForce(float maxLinMotorForce)
    • isPoweredAngMotor Link icon

      public boolean isPoweredAngMotor()
    • setPoweredAngMotor Link icon

      public void setPoweredAngMotor(boolean poweredAngMotor)
    • getTargetAngMotorVelocity Link icon

      public float getTargetAngMotorVelocity()
    • setTargetAngMotorVelocity Link icon

      public void setTargetAngMotorVelocity(float targetAngMotorVelocity)
    • getMaxAngMotorForce Link icon

      public float getMaxAngMotorForce()
    • setMaxAngMotorForce Link icon

      public void setMaxAngMotorForce(float maxAngMotorForce)
    • write Link icon

      public void write(JmeExporter ex) throws IOException
      Specified by:
      write in interface Savable
      Overrides:
      write in class PhysicsJoint
      Throws:
      IOException
    • read Link icon

      public void read(JmeImporter im) throws IOException
      Specified by:
      read in interface Savable
      Overrides:
      read in class PhysicsJoint
      Throws:
      IOException
    • createJoint Link icon

      protected void createJoint()