public class SliderConstraint extends TypedConstraint
Modifier and Type | Field and Description |
---|---|
protected float |
accumulatedAngMotorImpulse |
protected float |
accumulatedLinMotorImpulse |
protected float |
angDepth |
protected Transform |
calculatedTransformA |
protected Transform |
calculatedTransformB |
protected float |
dampingDirAng |
protected float |
dampingDirLin |
protected float |
dampingLimAng |
protected float |
dampingLimLin |
protected float |
dampingOrthoAng |
protected float |
dampingOrthoLin |
protected javax.vecmath.Vector3f |
delta |
protected javax.vecmath.Vector3f |
depth |
protected Transform |
frameInA |
protected Transform |
frameInB |
protected JacobianEntry[] |
jacAng |
protected JacobianEntry[] |
jacLin |
protected float[] |
jacLinDiagABInv |
protected float |
kAngle |
protected float |
linPos |
protected float |
lowerAngLimit |
protected float |
lowerLinLimit |
protected float |
maxAngMotorForce |
protected float |
maxLinMotorForce |
protected boolean |
poweredAngMotor |
protected boolean |
poweredLinMotor |
protected javax.vecmath.Vector3f |
projPivotInW |
protected javax.vecmath.Vector3f |
realPivotAInW |
protected javax.vecmath.Vector3f |
realPivotBInW |
protected javax.vecmath.Vector3f |
relPosA |
protected javax.vecmath.Vector3f |
relPosB |
protected float |
restitutionDirAng |
protected float |
restitutionDirLin |
protected float |
restitutionLimAng |
protected float |
restitutionLimLin |
protected float |
restitutionOrthoAng |
protected float |
restitutionOrthoLin |
static float |
SLIDER_CONSTRAINT_DEF_DAMPING |
static float |
SLIDER_CONSTRAINT_DEF_RESTITUTION |
static float |
SLIDER_CONSTRAINT_DEF_SOFTNESS |
protected javax.vecmath.Vector3f |
sliderAxis |
protected float |
softnessDirAng |
protected float |
softnessDirLin |
protected float |
softnessLimAng |
protected float |
softnessLimLin |
protected float |
softnessOrthoAng |
protected float |
softnessOrthoLin |
protected boolean |
solveAngLim |
protected boolean |
solveLinLim |
protected float |
targetAngMotorVelocity |
protected float |
targetLinMotorVelocity |
protected float |
timeStep |
protected float |
upperAngLimit |
protected float |
upperLinLimit |
protected boolean |
useLinearReferenceFrameA |
appliedImpulse, rbA, rbB
Constructor and Description |
---|
SliderConstraint() |
SliderConstraint(RigidBody rbA,
RigidBody rbB,
Transform frameInA,
Transform frameInB,
boolean useLinearReferenceFrameA) |
getAppliedImpulse, getConstraintType, getRigidBodyA, getRigidBodyB, getUid, getUserConstraintId, getUserConstraintType, setUserConstraintId, setUserConstraintType
public static final float SLIDER_CONSTRAINT_DEF_SOFTNESS
public static final float SLIDER_CONSTRAINT_DEF_DAMPING
public static final float SLIDER_CONSTRAINT_DEF_RESTITUTION
protected final Transform frameInA
protected final Transform frameInB
protected boolean useLinearReferenceFrameA
protected float lowerLinLimit
protected float upperLinLimit
protected float lowerAngLimit
protected float upperAngLimit
protected float softnessDirLin
protected float restitutionDirLin
protected float dampingDirLin
protected float softnessDirAng
protected float restitutionDirAng
protected float dampingDirAng
protected float softnessLimLin
protected float restitutionLimLin
protected float dampingLimLin
protected float softnessLimAng
protected float restitutionLimAng
protected float dampingLimAng
protected float softnessOrthoLin
protected float restitutionOrthoLin
protected float dampingOrthoLin
protected float softnessOrthoAng
protected float restitutionOrthoAng
protected float dampingOrthoAng
protected boolean solveLinLim
protected boolean solveAngLim
protected JacobianEntry[] jacLin
protected float[] jacLinDiagABInv
protected JacobianEntry[] jacAng
protected float timeStep
protected final Transform calculatedTransformA
protected final Transform calculatedTransformB
protected final javax.vecmath.Vector3f sliderAxis
protected final javax.vecmath.Vector3f realPivotAInW
protected final javax.vecmath.Vector3f realPivotBInW
protected final javax.vecmath.Vector3f projPivotInW
protected final javax.vecmath.Vector3f delta
protected final javax.vecmath.Vector3f depth
protected final javax.vecmath.Vector3f relPosA
protected final javax.vecmath.Vector3f relPosB
protected float linPos
protected float angDepth
protected float kAngle
protected boolean poweredLinMotor
protected float targetLinMotorVelocity
protected float maxLinMotorForce
protected float accumulatedLinMotorImpulse
protected boolean poweredAngMotor
protected float targetAngMotorVelocity
protected float maxAngMotorForce
protected float accumulatedAngMotorImpulse
protected void initParams()
public void buildJacobian()
buildJacobian
in class TypedConstraint
public void solveConstraint(float timeStep)
solveConstraint
in class TypedConstraint
public float getLowerLinLimit()
public void setLowerLinLimit(float lowerLimit)
public float getUpperLinLimit()
public void setUpperLinLimit(float upperLimit)
public float getLowerAngLimit()
public void setLowerAngLimit(float lowerLimit)
public float getUpperAngLimit()
public void setUpperAngLimit(float upperLimit)
public boolean getUseLinearReferenceFrameA()
public float getSoftnessDirLin()
public float getRestitutionDirLin()
public float getDampingDirLin()
public float getSoftnessDirAng()
public float getRestitutionDirAng()
public float getDampingDirAng()
public float getSoftnessLimLin()
public float getRestitutionLimLin()
public float getDampingLimLin()
public float getSoftnessLimAng()
public float getRestitutionLimAng()
public float getDampingLimAng()
public float getSoftnessOrthoLin()
public float getRestitutionOrthoLin()
public float getDampingOrthoLin()
public float getSoftnessOrthoAng()
public float getRestitutionOrthoAng()
public float getDampingOrthoAng()
public void setSoftnessDirLin(float softnessDirLin)
public void setRestitutionDirLin(float restitutionDirLin)
public void setDampingDirLin(float dampingDirLin)
public void setSoftnessDirAng(float softnessDirAng)
public void setRestitutionDirAng(float restitutionDirAng)
public void setDampingDirAng(float dampingDirAng)
public void setSoftnessLimLin(float softnessLimLin)
public void setRestitutionLimLin(float restitutionLimLin)
public void setDampingLimLin(float dampingLimLin)
public void setSoftnessLimAng(float softnessLimAng)
public void setRestitutionLimAng(float restitutionLimAng)
public void setDampingLimAng(float dampingLimAng)
public void setSoftnessOrthoLin(float softnessOrthoLin)
public void setRestitutionOrthoLin(float restitutionOrthoLin)
public void setDampingOrthoLin(float dampingOrthoLin)
public void setSoftnessOrthoAng(float softnessOrthoAng)
public void setRestitutionOrthoAng(float restitutionOrthoAng)
public void setDampingOrthoAng(float dampingOrthoAng)
public void setPoweredLinMotor(boolean onOff)
public boolean getPoweredLinMotor()
public void setTargetLinMotorVelocity(float targetLinMotorVelocity)
public float getTargetLinMotorVelocity()
public void setMaxLinMotorForce(float maxLinMotorForce)
public float getMaxLinMotorForce()
public void setPoweredAngMotor(boolean onOff)
public boolean getPoweredAngMotor()
public void setTargetAngMotorVelocity(float targetAngMotorVelocity)
public float getTargetAngMotorVelocity()
public void setMaxAngMotorForce(float maxAngMotorForce)
public float getMaxAngMotorForce()
public float getLinearPos()
public boolean getSolveLinLimit()
public float getLinDepth()
public boolean getSolveAngLimit()
public float getAngDepth()
public void buildJacobianInt(RigidBody rbA, RigidBody rbB, Transform frameInA, Transform frameInB)
public void calculateTransforms()
public void testLinLimits()
public void testAngLimits()
public javax.vecmath.Vector3f getAncorInA(javax.vecmath.Vector3f out)
public javax.vecmath.Vector3f getAncorInB(javax.vecmath.Vector3f out)
Copyright © 2013. All Rights Reserved.