public class SliderJoint extends Constraint
From the Bullet manual:
The slider constraint allows the body to rotate around one axis and translate
along this axis.
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger2
message logger for this class
|
logger15, pivotA, pivotBloggerloggerN| Constructor and Description |
|---|
SliderJoint(PhysicsRigidBody rigidBodyA,
PhysicsRigidBody rigidBodyB,
Vector3f pivotInA,
Vector3f pivotInB,
boolean useLinearReferenceFrameA)
Instantiate a double-ended SliderJoint.
|
SliderJoint(PhysicsRigidBody rigidBodyA,
PhysicsRigidBody rigidBodyB,
Vector3f pivotInA,
Vector3f pivotInB,
Matrix3f rotInA,
Matrix3f rotInB,
boolean useLinearReferenceFrameA)
Instantiate a double-ended SliderJoint.
|
SliderJoint(PhysicsRigidBody rigidBodyB,
Vector3f pivotInB,
Vector3f pivotInWorld,
JointEnd linearReferenceFrame)
Instantiate a single-ended SliderJoint.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getDampingDirAng()
Read the joint's damping for on-axis rotation between the limits.
|
float |
getDampingDirLin()
Read the joint's damping for on-axis translation between the limits.
|
float |
getDampingLimAng()
Read the joint's damping for on-axis rotation hitting the limits.
|
float |
getDampingLimLin()
Read the joint's damping for on-axis translation hitting the limits.
|
float |
getDampingOrthoAng()
Read the joint's damping for off-axis rotation.
|
float |
getDampingOrthoLin()
Read the joint's damping for off-axis translation.
|
Transform |
getFrameTransform(JointEnd end,
Transform storeResult)
Copy the joint's frame transform relative to the specified end.
|
float |
getLowerAngLimit()
Read the joint's lower limit for on-axis rotation.
|
float |
getLowerLinLimit()
Read the joint's lower limit for on-axis translation.
|
float |
getMaxAngMotorForce()
Read the maximum force of the rotation motor.
|
float |
getMaxLinMotorForce()
Read the maximum force of the translation motor.
|
float |
getRestitutionDirAng()
Read the joint's restitution for on-axis rotation between the limits.
|
float |
getRestitutionDirLin()
Read the joint's restitution for on-axis translation between the limits.
|
float |
getRestitutionLimAng()
Read the joint's restitution for on-axis rotation hitting the limits.
|
float |
getRestitutionLimLin()
Read the joint's restitution for on-axis translation hitting the limits.
|
float |
getRestitutionOrthoAng()
Read the joint's restitution for off-axis rotation.
|
float |
getRestitutionOrthoLin()
Read the joint's restitution for off-axis translation.
|
float |
getSoftnessDirAng()
Read the joint's softness for on-axis rotation between the limits.
|
float |
getSoftnessDirLin()
Read the joint's softness for on-axis translation between the limits.
|
float |
getSoftnessLimAng()
Read the joint's softness for on-axis rotation hitting the limits.
|
float |
getSoftnessLimLin()
Read the joint's softness for on-axis translation hitting the limits.
|
float |
getSoftnessOrthoAng()
Read the joint's softness for off-axis rotation.
|
float |
getSoftnessOrthoLin()
Read the joint's softness for off-axis translation.
|
float |
getTargetAngMotorVelocity()
Read the velocity target of the rotation motor.
|
float |
getTargetLinMotorVelocity()
Read the velocity target of the translation motor.
|
float |
getUpperAngLimit()
Read the joint's upper limit for on-axis rotation.
|
float |
getUpperLinLimit()
Read the joint's upper limit for on-axis translation.
|
boolean |
isPoweredAngMotor()
Test whether the rotation motor is powered.
|
boolean |
isPoweredLinMotor()
Test whether the translation motor is powered.
|
void |
setDampingDirAng(float dampingDirAng)
Alter the joint's damping for on-axis rotation between the limits.
|
void |
setDampingDirLin(float dampingDirLin)
Alter the joint's damping for on-axis translation between the limits.
|
void |
setDampingLimAng(float dampingLimAng)
Alter the joint's damping for on-axis rotation hitting the limits.
|
void |
setDampingLimLin(float dampingLimLin)
Alter the joint's damping for on-axis translation hitting the limits.
|
void |
setDampingOrthoAng(float dampingOrthoAng)
Alter the joint's damping for off-axis rotation.
|
void |
setDampingOrthoLin(float dampingOrthoLin)
Alter the joint's damping for off-axis translation.
|
void |
setLowerAngLimit(float lowerAngLimit)
Alter the joint's lower limit for on-axis rotation.
|
void |
setLowerLinLimit(float lowerLinLimit)
Alter the joint's lower limit for on-axis translation.
|
void |
setMaxAngMotorForce(float maxAngMotorForce)
Alter the maximum force of the rotation motor.
|
void |
setMaxLinMotorForce(float maxLinMotorForce)
Alter the maximum force of the translation motor.
|
void |
setPoweredAngMotor(boolean poweredAngMotor)
Alter whether the rotation motor is powered.
|
void |
setPoweredLinMotor(boolean poweredLinMotor)
Alter whether the translation motor is powered.
|
void |
setRestitutionDirAng(float restitutionDirAng)
Alter the joint's restitution for on-axis rotation between the limits.
|
void |
setRestitutionDirLin(float restitutionDirLin)
Alter the joint's restitution for on-axis translation between the limits.
|
void |
setRestitutionLimAng(float restitutionLimAng)
Alter the joint's restitution for on-axis rotation hitting the limits.
|
void |
setRestitutionLimLin(float restitutionLimLin)
Alter the joint's restitution for on-axis translation hitting the limits.
|
void |
setRestitutionOrthoAng(float restitutionOrthoAng)
Alter the joint's restitution for off-axis rotation.
|
void |
setRestitutionOrthoLin(float restitutionOrthoLin)
Alter the joint's restitution for off-axis translation.
|
void |
setSoftnessDirAng(float softnessDirAng)
Alter the joint's softness for on-axis rotation between the limits.
|
void |
setSoftnessDirLin(float softnessDirLin)
Alter the joint's softness for on-axis translation between the limits.
|
void |
setSoftnessLimAng(float softnessLimAng)
Alter the joint's softness for on-axis rotation hitting the limits.
|
void |
setSoftnessLimLin(float softnessLimLin)
Alter the joint's softness for on-axis translation hitting the limits.
|
void |
setSoftnessOrthoAng(float softnessOrthoAng)
Alter the joint's softness for off-axis rotation.
|
void |
setSoftnessOrthoLin(float softnessOrthoLin)
Alter the joint's softness for off-axis translation.
|
void |
setTargetAngMotorVelocity(float targetAngMotorVelocity)
Alter the velocity target of the rotation motor.
|
void |
setTargetLinMotorVelocity(float targetLinMotorVelocity)
Alter the velocity target of the translation motor.
|
void |
setUpperAngLimit(float upperAngLimit)
Alter the joint's upper limit for on-axis rotation.
|
void |
setUpperLinLimit(float upperLinLimit)
Alter the joint's upper limit for on-axis translation.
|
getAppliedImpulse, getBodyA, getBodyB, getBreakingImpulseThreshold, getConstraintType, getOverrideIterations, getPivot, getPivotA, getPivotB, isCollisionBetweenLinkedBodies, isEnabled, isFeedback, overrideIterations, setBreakingImpulseThreshold, setCollisionBetweenLinkedBodies, setEnabled, setFeedback, setPivotInA, setPivotInBcountEnds, destroy, findEnd, findOtherBody, getBody, getPhysicsSpace, setBodyA, setBodyB, setNativeId, setPhysicsSpace, toStringcompareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeIdNotTracked, unassignNativeObjectpublic static final java.util.logging.Logger logger2
public SliderJoint(PhysicsRigidBody rigidBodyB, Vector3f pivotInB, Vector3f pivotInWorld, JointEnd linearReferenceFrame)
To be effective, the joint must be added to the body's PhysicsSpace and the body must be dynamic.
rigidBodyB - the body to constrain (not null, alias created)pivotInB - the pivot location in B's scaled local coordinates (not
null, unaffected)pivotInWorld - the pivot location in physics-space coordinates (not
null, unaffected)linearReferenceFrame - which end to use as the linear reference (not
null)public SliderJoint(PhysicsRigidBody rigidBodyA, PhysicsRigidBody rigidBodyB, Vector3f pivotInA, Vector3f pivotInB, Matrix3f rotInA, Matrix3f rotInB, boolean useLinearReferenceFrameA)
To be effective, the joint must be added to the PhysicsSpace of both bodies. Also, the bodies must be distinct and at least one of them must be dynamic.
rigidBodyA - the body for the A end (not null, alias created)rigidBodyB - the body for the B end (not null, alias created)pivotInA - the pivot location in A's scaled local coordinates (not
null, unaffected)pivotInB - the pivot location in B's scaled local coordinates (not
null, unaffected)rotInA - the joint orientation in A's local coordinates (not null,
alias unaffected)rotInB - the joint orientation in B's local coordinates (not null,
alias unaffected)useLinearReferenceFrameA - true→use body A, false→use body
Bpublic SliderJoint(PhysicsRigidBody rigidBodyA, PhysicsRigidBody rigidBodyB, Vector3f pivotInA, Vector3f pivotInB, boolean useLinearReferenceFrameA)
To be effective, the joint must be added to the body's PhysicsSpace and the body must be dynamic.
rigidBodyA - the first body to constrain (not null, alias created)rigidBodyB - the 2nd body to constrain (not null, alias created)pivotInA - the pivot location in A's scaled local coordinates (not
null, unaffected)pivotInB - the pivot location in B's scaled local coordinates (not
null, unaffected)useLinearReferenceFrameA - true→use body A, false→use body
Bpublic float getDampingDirAng()
public float getDampingDirLin()
public float getDampingLimAng()
public float getDampingLimLin()
public float getDampingOrthoAng()
public float getDampingOrthoLin()
public Transform getFrameTransform(JointEnd end, Transform storeResult)
end - which end (not null)storeResult - storage for the result (modified if not null)public float getLowerAngLimit()
public float getLowerLinLimit()
public float getMaxAngMotorForce()
public float getMaxLinMotorForce()
public float getRestitutionDirAng()
public float getRestitutionDirLin()
public float getRestitutionLimAng()
public float getRestitutionLimLin()
public float getRestitutionOrthoAng()
public float getRestitutionOrthoLin()
public float getSoftnessDirAng()
public float getSoftnessDirLin()
public float getSoftnessLimAng()
public float getSoftnessLimLin()
public float getSoftnessOrthoAng()
public float getSoftnessOrthoLin()
public float getTargetAngMotorVelocity()
public float getTargetLinMotorVelocity()
public float getUpperAngLimit()
public float getUpperLinLimit()
public boolean isPoweredAngMotor()
public boolean isPoweredLinMotor()
public void setDampingDirAng(float dampingDirAng)
dampingDirAng - the desired viscous damping ratio (0→no
damping, 1→critically damped, default=0)public void setDampingDirLin(float dampingDirLin)
dampingDirLin - the desired viscous damping ratio (0→no
damping, 1→critically damped, default=0)public void setDampingLimAng(float dampingLimAng)
dampingLimAng - the desired viscous damping ratio (0→no
damping, 1→critically damped, default=1)public void setDampingLimLin(float dampingLimLin)
dampingLimLin - the desired viscous damping ratio (0→no
damping, 1→critically damped, default=1)public void setDampingOrthoAng(float dampingOrthoAng)
dampingOrthoAng - the desired viscous damping ratio (0→no
damping, 1→critically damped, default=1)public void setDampingOrthoLin(float dampingOrthoLin)
dampingOrthoLin - the desired viscous damping ratio (0→no
damping, 1→critically damped, default=1)public void setLowerAngLimit(float lowerAngLimit)
lowerAngLimit - the desired lower limit angle (in radians,
default=0)public void setLowerLinLimit(float lowerLinLimit)
lowerLinLimit - the desired lower limit (default=1)public void setMaxAngMotorForce(float maxAngMotorForce)
maxAngMotorForce - the desired maximum force (default=0)public void setMaxLinMotorForce(float maxLinMotorForce)
maxLinMotorForce - the desired maximum force (default=0)public void setPoweredAngMotor(boolean poweredAngMotor)
poweredAngMotor - true to power the motor, false to de-power it
(default=false)public void setPoweredLinMotor(boolean poweredLinMotor)
poweredLinMotor - true to power the motor, false to de-power it
(default=false)public void setRestitutionDirAng(float restitutionDirAng)
restitutionDirAng - the desired restitution (bounce) factor
(default=0.7)public void setRestitutionDirLin(float restitutionDirLin)
restitutionDirLin - the desired restitution (bounce) factor
(default=0.7)public void setRestitutionLimAng(float restitutionLimAng)
restitutionLimAng - the desired restitution (bounce) factor
(default=0.7)public void setRestitutionLimLin(float restitutionLimLin)
restitutionLimLin - the desired restitution (bounce) factor
(default=0.7)public void setRestitutionOrthoAng(float restitutionOrthoAng)
restitutionOrthoAng - the desired restitution (bounce) factor
(default=0.7)public void setRestitutionOrthoLin(float restitutionOrthoLin)
restitutionOrthoLin - the desired restitution (bounce) factor
(default=0.7)public void setSoftnessDirAng(float softnessDirAng)
softnessDirAng - the desired softness (default=1)public void setSoftnessDirLin(float softnessDirLin)
softnessDirLin - the desired softness (default=1)public void setSoftnessLimAng(float softnessLimAng)
softnessLimAng - the desired softness (default=1)public void setSoftnessLimLin(float softnessLimLin)
softnessLimLin - the desired softness (default=1)public void setSoftnessOrthoAng(float softnessOrthoAng)
softnessOrthoAng - the desired softness (default=1)public void setSoftnessOrthoLin(float softnessOrthoLin)
softnessOrthoLin - the desired softness (default=1)public void setTargetAngMotorVelocity(float targetAngMotorVelocity)
targetAngMotorVelocity - the desired velocity target (in radians per
second, default=0)public void setTargetLinMotorVelocity(float targetLinMotorVelocity)
targetLinMotorVelocity - the desired velocity target (default=0)public void setUpperAngLimit(float upperAngLimit)
upperAngLimit - the desired upper limit angle (in radians,
default=0)public void setUpperLinLimit(float upperLinLimit)
upperLinLimit - the desired upper limit (default=-1)