public class ConeTwistConstraint extends TypedConstraint
| Constructor and Description |
|---|
ConeTwistConstraint() |
ConeTwistConstraint(RigidBody rbA,
RigidBody rbB,
Transform rbAFrame,
Transform rbBFrame) |
ConeTwistConstraint(RigidBody rbA,
Transform rbAFrame) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildJacobian() |
Transform |
getAFrame(Transform out) |
Transform |
getBFrame(Transform out) |
boolean |
getSolveSwingLimit() |
boolean |
getSolveTwistLimit() |
float |
getTwistLimitSign() |
void |
setAngularOnly(boolean angularOnly) |
void |
setLimit(float _swingSpan1,
float _swingSpan2,
float _twistSpan) |
void |
setLimit(float _swingSpan1,
float _swingSpan2,
float _twistSpan,
float _softness,
float _biasFactor,
float _relaxationFactor) |
void |
solveConstraint(float timeStep) |
void |
updateRHS(float timeStep) |
getAppliedImpulse, getConstraintType, getRigidBodyA, getRigidBodyB, getUid, getUserConstraintId, getUserConstraintType, setUserConstraintId, setUserConstraintTypepublic ConeTwistConstraint()
public ConeTwistConstraint(RigidBody rbA, RigidBody rbB, Transform rbAFrame, Transform rbBFrame)
public void buildJacobian()
buildJacobian in class TypedConstraintpublic void solveConstraint(float timeStep)
solveConstraint in class TypedConstraintpublic void updateRHS(float timeStep)
public void setAngularOnly(boolean angularOnly)
public void setLimit(float _swingSpan1,
float _swingSpan2,
float _twistSpan)
public void setLimit(float _swingSpan1,
float _swingSpan2,
float _twistSpan,
float _softness,
float _biasFactor,
float _relaxationFactor)
public boolean getSolveTwistLimit()
public boolean getSolveSwingLimit()
public float getTwistLimitSign()