com.jme3.bullet.joints
Class SliderJoint

java.lang.Object
  extended by com.jme3.bullet.joints.PhysicsJoint
      extended by 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 Summary
protected  Matrix3f rotA
           
protected  Matrix3f rotB
           
protected  boolean useLinearReferenceFrameA
           
 
Fields inherited from class com.jme3.bullet.joints.PhysicsJoint
collisionBetweenLinkedBodys, nodeA, nodeB, objectId, pivotA, pivotB
 
Constructor Summary
SliderJoint()
           
SliderJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, boolean useLinearReferenceFrameA)
           
SliderJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Matrix3f rotA, Matrix3f rotB, boolean useLinearReferenceFrameA)
           
 
Method Summary
protected  void createJoint()
           
 float getDampingDirAng()
           
 float getDampingDirLin()
           
 float getDampingLimAng()
           
 float getDampingLimLin()
           
 float getDampingOrthoAng()
           
 float getDampingOrthoLin()
           
 float getLowerAngLimit()
           
 float getLowerLinLimit()
           
 float getMaxAngMotorForce()
           
 float getMaxLinMotorForce()
           
 float getRestitutionDirAng()
           
 float getRestitutionDirLin()
           
 float getRestitutionLimAng()
           
 float getRestitutionLimLin()
           
 float getRestitutionOrthoAng()
           
 float getRestitutionOrthoLin()
           
 float getSoftnessDirAng()
           
 float getSoftnessDirLin()
           
 float getSoftnessLimAng()
           
 float getSoftnessLimLin()
           
 float getSoftnessOrthoAng()
           
 float getSoftnessOrthoLin()
           
 float getTargetAngMotorVelocity()
           
 float getTargetLinMotorVelocity()
           
 float getUpperAngLimit()
           
 float getUpperLinLimit()
           
 boolean isPoweredAngMotor()
           
 boolean isPoweredLinMotor()
           
 void read(JmeImporter im)
           
 void setDampingDirAng(float dampingDirAng)
           
 void setDampingDirLin(float dampingDirLin)
           
 void setDampingLimAng(float dampingLimAng)
           
 void setDampingLimLin(float dampingLimLin)
           
 void setDampingOrthoAng(float dampingOrthoAng)
           
 void setDampingOrthoLin(float dampingOrthoLin)
           
 void setLowerAngLimit(float lowerAngLimit)
           
 void setLowerLinLimit(float lowerLinLimit)
           
 void setMaxAngMotorForce(float maxAngMotorForce)
           
 void setMaxLinMotorForce(float maxLinMotorForce)
           
 void setPoweredAngMotor(boolean poweredAngMotor)
           
 void setPoweredLinMotor(boolean poweredLinMotor)
           
 void setRestitutionDirAng(float restitutionDirAng)
           
 void setRestitutionDirLin(float restitutionDirLin)
           
 void setRestitutionLimAng(float restitutionLimAng)
           
 void setRestitutionLimLin(float restitutionLimLin)
           
 void setRestitutionOrthoAng(float restitutionOrthoAng)
           
 void setRestitutionOrthoLin(float restitutionOrthoLin)
           
 void setSoftnessDirAng(float softnessDirAng)
           
 void setSoftnessDirLin(float softnessDirLin)
           
 void setSoftnessLimAng(float softnessLimAng)
           
 void setSoftnessLimLin(float softnessLimLin)
           
 void setSoftnessOrthoAng(float softnessOrthoAng)
           
 void setSoftnessOrthoLin(float softnessOrthoLin)
           
 void setTargetAngMotorVelocity(float targetAngMotorVelocity)
           
 void setTargetLinMotorVelocity(float targetLinMotorVelocity)
           
 void setUpperAngLimit(float upperAngLimit)
           
 void setUpperLinLimit(float upperLinLimit)
           
 void write(JmeExporter ex)
           
 
Methods inherited from class com.jme3.bullet.joints.PhysicsJoint
destroy, finalize, getAppliedImpulse, getBodyA, getBodyB, getObjectId, getPivotA, getPivotB, isCollisionBetweenLinkedBodys, setCollisionBetweenLinkedBodys
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rotA

protected Matrix3f rotA

rotB

protected Matrix3f rotB

useLinearReferenceFrameA

protected boolean useLinearReferenceFrameA
Constructor Detail

SliderJoint

public SliderJoint()

SliderJoint

public SliderJoint(PhysicsRigidBody nodeA,
                   PhysicsRigidBody nodeB,
                   Vector3f pivotA,
                   Vector3f pivotB,
                   Matrix3f rotA,
                   Matrix3f rotB,
                   boolean useLinearReferenceFrameA)
Parameters:
pivotA - local translation of the joint connection point in node A
pivotB - local translation of the joint connection point in node B

SliderJoint

public SliderJoint(PhysicsRigidBody nodeA,
                   PhysicsRigidBody nodeB,
                   Vector3f pivotA,
                   Vector3f pivotB,
                   boolean useLinearReferenceFrameA)
Parameters:
pivotA - local translation of the joint connection point in node A
pivotB - local translation of the joint connection point in node B
Method Detail

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 java.io.IOException
Specified by:
write in interface Savable
Overrides:
write in class PhysicsJoint
Throws:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
Specified by:
read in interface Savable
Overrides:
read in class PhysicsJoint
Throws:
java.io.IOException

createJoint

protected void createJoint()