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

    • rotA

      protected Matrix3f rotA
    • rotB

      protected Matrix3f rotB
    • useLinearReferenceFrameA

      protected boolean useLinearReferenceFrameA
  • Constructor Details

    • SliderJoint

      protected SliderJoint()
    • SliderJoint

      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

      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

    • getLowerLinLimit

      public float getLowerLinLimit()
    • setLowerLinLimit

      public void setLowerLinLimit(float lowerLinLimit)
    • getUpperLinLimit

      public float getUpperLinLimit()
    • setUpperLinLimit

      public void setUpperLinLimit(float upperLinLimit)
    • getLowerAngLimit

      public float getLowerAngLimit()
    • setLowerAngLimit

      public void setLowerAngLimit(float lowerAngLimit)
    • getUpperAngLimit

      public float getUpperAngLimit()
    • setUpperAngLimit

      public void setUpperAngLimit(float upperAngLimit)
    • getSoftnessDirLin

      public float getSoftnessDirLin()
    • setSoftnessDirLin

      public void setSoftnessDirLin(float softnessDirLin)
    • getRestitutionDirLin

      public float getRestitutionDirLin()
    • setRestitutionDirLin

      public void setRestitutionDirLin(float restitutionDirLin)
    • getDampingDirLin

      public float getDampingDirLin()
    • setDampingDirLin

      public void setDampingDirLin(float dampingDirLin)
    • getSoftnessDirAng

      public float getSoftnessDirAng()
    • setSoftnessDirAng

      public void setSoftnessDirAng(float softnessDirAng)
    • getRestitutionDirAng

      public float getRestitutionDirAng()
    • setRestitutionDirAng

      public void setRestitutionDirAng(float restitutionDirAng)
    • getDampingDirAng

      public float getDampingDirAng()
    • setDampingDirAng

      public void setDampingDirAng(float dampingDirAng)
    • getSoftnessLimLin

      public float getSoftnessLimLin()
    • setSoftnessLimLin

      public void setSoftnessLimLin(float softnessLimLin)
    • getRestitutionLimLin

      public float getRestitutionLimLin()
    • setRestitutionLimLin

      public void setRestitutionLimLin(float restitutionLimLin)
    • getDampingLimLin

      public float getDampingLimLin()
    • setDampingLimLin

      public void setDampingLimLin(float dampingLimLin)
    • getSoftnessLimAng

      public float getSoftnessLimAng()
    • setSoftnessLimAng

      public void setSoftnessLimAng(float softnessLimAng)
    • getRestitutionLimAng

      public float getRestitutionLimAng()
    • setRestitutionLimAng

      public void setRestitutionLimAng(float restitutionLimAng)
    • getDampingLimAng

      public float getDampingLimAng()
    • setDampingLimAng

      public void setDampingLimAng(float dampingLimAng)
    • getSoftnessOrthoLin

      public float getSoftnessOrthoLin()
    • setSoftnessOrthoLin

      public void setSoftnessOrthoLin(float softnessOrthoLin)
    • getRestitutionOrthoLin

      public float getRestitutionOrthoLin()
    • setRestitutionOrthoLin

      public void setRestitutionOrthoLin(float restitutionOrthoLin)
    • getDampingOrthoLin

      public float getDampingOrthoLin()
    • setDampingOrthoLin

      public void setDampingOrthoLin(float dampingOrthoLin)
    • getSoftnessOrthoAng

      public float getSoftnessOrthoAng()
    • setSoftnessOrthoAng

      public void setSoftnessOrthoAng(float softnessOrthoAng)
    • getRestitutionOrthoAng

      public float getRestitutionOrthoAng()
    • setRestitutionOrthoAng

      public void setRestitutionOrthoAng(float restitutionOrthoAng)
    • getDampingOrthoAng

      public float getDampingOrthoAng()
    • setDampingOrthoAng

      public void setDampingOrthoAng(float dampingOrthoAng)
    • isPoweredLinMotor

      public boolean isPoweredLinMotor()
    • setPoweredLinMotor

      public void setPoweredLinMotor(boolean poweredLinMotor)
    • getTargetLinMotorVelocity

      public float getTargetLinMotorVelocity()
    • setTargetLinMotorVelocity

      public void setTargetLinMotorVelocity(float targetLinMotorVelocity)
    • getMaxLinMotorForce

      public float getMaxLinMotorForce()
    • setMaxLinMotorForce

      public void setMaxLinMotorForce(float maxLinMotorForce)
    • isPoweredAngMotor

      public boolean isPoweredAngMotor()
    • setPoweredAngMotor

      public void setPoweredAngMotor(boolean poweredAngMotor)
    • getTargetAngMotorVelocity

      public float getTargetAngMotorVelocity()
    • setTargetAngMotorVelocity

      public void setTargetAngMotorVelocity(float targetAngMotorVelocity)
    • getMaxAngMotorForce

      public float getMaxAngMotorForce()
    • setMaxAngMotorForce

      public void setMaxAngMotorForce(float maxAngMotorForce)
    • write

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

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

      protected void createJoint()