com.jme3.bullet.joints
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.
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)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rotA
protected Matrix3f rotA
rotB
protected Matrix3f rotB
useLinearReferenceFrameA
protected boolean useLinearReferenceFrameA
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 ApivotB
- 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 ApivotB
- local translation of the joint connection point in node B
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()