Package com.jme3.bullet.joints
Class SliderJoint
java.lang.Object
com.jme3.bullet.joints.PhysicsJoint
com.jme3.bullet.joints.SliderJoint
- All Implemented Interfaces:
Savable
From bullet manual:
The slider constraint allows the body to rotate around one axis and translate along this axis.
The slider constraint allows the body to rotate around one axis and translate along this axis.
-
Field Summary
Fields inherited from class com.jme3.bullet.joints.PhysicsJoint
collisionBetweenLinkedBodys, constraint, nodeA, nodeB, pivotA, pivotB
-
Constructor Summary
ModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionprotected void
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
boolean
boolean
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, getAppliedImpulse, getBodyA, getBodyB, getObjectId, getPivotA, getPivotB, isCollisionBetweenLinkedBodys, setCollisionBetweenLinkedBodys
-
Field Details
-
rotA
-
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 ApivotB
- local translation of the joint connection point in node BrotA
- 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 ApivotB
- local translation of the joint connection point in node BuseLinearReferenceFrameA
- 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
- Specified by:
write
in interfaceSavable
- Overrides:
write
in classPhysicsJoint
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classPhysicsJoint
- Throws:
IOException
-
createJoint
protected void createJoint()
-