public class SliderJoint extends PhysicsJoint
Modifier and Type | Field and Description |
---|---|
protected Matrix3f |
rotA |
protected Matrix3f |
rotB |
protected boolean |
useLinearReferenceFrameA |
collisionBetweenLinkedBodys, constraint, nodeA, nodeB, pivotA, pivotB
Modifier | Constructor and Description |
---|---|
protected |
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) |
Modifier and Type | Method and Description |
---|---|
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) |
destroy, getAppliedImpulse, getBodyA, getBodyB, getObjectId, getPivotA, getPivotB, isCollisionBetweenLinkedBodys, setCollisionBetweenLinkedBodys
protected Matrix3f rotA
protected Matrix3f rotB
protected boolean useLinearReferenceFrameA
protected SliderJoint()
public SliderJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Matrix3f rotA, Matrix3f rotB, boolean useLinearReferenceFrameA)
pivotA
- local translation of the joint connection point in node ApivotB
- local translation of the joint connection point in node Bpublic SliderJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, boolean useLinearReferenceFrameA)
pivotA
- local translation of the joint connection point in node ApivotB
- local translation of the joint connection point in node Bpublic float getLowerLinLimit()
public void setLowerLinLimit(float lowerLinLimit)
public float getUpperLinLimit()
public void setUpperLinLimit(float upperLinLimit)
public float getLowerAngLimit()
public void setLowerAngLimit(float lowerAngLimit)
public float getUpperAngLimit()
public void setUpperAngLimit(float upperAngLimit)
public float getSoftnessDirLin()
public void setSoftnessDirLin(float softnessDirLin)
public float getRestitutionDirLin()
public void setRestitutionDirLin(float restitutionDirLin)
public float getDampingDirLin()
public void setDampingDirLin(float dampingDirLin)
public float getSoftnessDirAng()
public void setSoftnessDirAng(float softnessDirAng)
public float getRestitutionDirAng()
public void setRestitutionDirAng(float restitutionDirAng)
public float getDampingDirAng()
public void setDampingDirAng(float dampingDirAng)
public float getSoftnessLimLin()
public void setSoftnessLimLin(float softnessLimLin)
public float getRestitutionLimLin()
public void setRestitutionLimLin(float restitutionLimLin)
public float getDampingLimLin()
public void setDampingLimLin(float dampingLimLin)
public float getSoftnessLimAng()
public void setSoftnessLimAng(float softnessLimAng)
public float getRestitutionLimAng()
public void setRestitutionLimAng(float restitutionLimAng)
public float getDampingLimAng()
public void setDampingLimAng(float dampingLimAng)
public float getSoftnessOrthoLin()
public void setSoftnessOrthoLin(float softnessOrthoLin)
public float getRestitutionOrthoLin()
public void setRestitutionOrthoLin(float restitutionOrthoLin)
public float getDampingOrthoLin()
public void setDampingOrthoLin(float dampingOrthoLin)
public float getSoftnessOrthoAng()
public void setSoftnessOrthoAng(float softnessOrthoAng)
public float getRestitutionOrthoAng()
public void setRestitutionOrthoAng(float restitutionOrthoAng)
public float getDampingOrthoAng()
public void setDampingOrthoAng(float dampingOrthoAng)
public boolean isPoweredLinMotor()
public void setPoweredLinMotor(boolean poweredLinMotor)
public float getTargetLinMotorVelocity()
public void setTargetLinMotorVelocity(float targetLinMotorVelocity)
public float getMaxLinMotorForce()
public void setMaxLinMotorForce(float maxLinMotorForce)
public boolean isPoweredAngMotor()
public void setPoweredAngMotor(boolean poweredAngMotor)
public float getTargetAngMotorVelocity()
public void setTargetAngMotorVelocity(float targetAngMotorVelocity)
public float getMaxAngMotorForce()
public void setMaxAngMotorForce(float maxAngMotorForce)
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
write
in class PhysicsJoint
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
read
in class PhysicsJoint
java.io.IOException
protected void createJoint()