Bullet Collision Detection & Physics Library
|
btConeTwistConstraint can be used to simulate ragdoll joints (upper arm, leg etc) More...
#include <btConeTwistConstraint.h>
Public Member Functions | |
BT_DECLARE_ALIGNED_ALLOCATOR () | |
btConeTwistConstraint (btRigidBody &rbA, btRigidBody &rbB, const btTransform &rbAFrame, const btTransform &rbBFrame) | |
btConeTwistConstraint (btRigidBody &rbA, const btTransform &rbAFrame) | |
virtual void | buildJacobian () |
internal method used by the constraint solver, don't use them directly More... | |
virtual void | getInfo1 (btConstraintInfo1 *info) |
internal method used by the constraint solver, don't use them directly More... | |
void | getInfo1NonVirtual (btConstraintInfo1 *info) |
virtual void | getInfo2 (btConstraintInfo2 *info) |
internal method used by the constraint solver, don't use them directly More... | |
void | getInfo2NonVirtual (btConstraintInfo2 *info, const btTransform &transA, const btTransform &transB, const btMatrix3x3 &invInertiaWorldA, const btMatrix3x3 &invInertiaWorldB) |
virtual void | solveConstraintObsolete (btSolverBody &bodyA, btSolverBody &bodyB, btScalar timeStep) |
internal method used by the constraint solver, don't use them directly More... | |
void | updateRHS (btScalar timeStep) |
const btRigidBody & | getRigidBodyA () const |
const btRigidBody & | getRigidBodyB () const |
void | setAngularOnly (bool angularOnly) |
bool | getAngularOnly () const |
void | setLimit (int limitIndex, btScalar limitValue) |
btScalar | getLimit (int limitIndex) const |
void | setLimit (btScalar _swingSpan1, btScalar _swingSpan2, btScalar _twistSpan, btScalar _softness=1.f, btScalar _biasFactor=0.3f, btScalar _relaxationFactor=1.0f) |
const btTransform & | getAFrame () const |
const btTransform & | getBFrame () const |
int | getSolveTwistLimit () |
int | getSolveSwingLimit () |
btScalar | getTwistLimitSign () |
void | calcAngleInfo () |
void | calcAngleInfo2 (const btTransform &transA, const btTransform &transB, const btMatrix3x3 &invInertiaWorldA, const btMatrix3x3 &invInertiaWorldB) |
btScalar | getSwingSpan1 () const |
btScalar | getSwingSpan2 () const |
btScalar | getTwistSpan () const |
btScalar | getLimitSoftness () const |
btScalar | getBiasFactor () const |
btScalar | getRelaxationFactor () const |
btScalar | getTwistAngle () const |
bool | isPastSwingLimit () |
btScalar | getDamping () const |
void | setDamping (btScalar damping) |
void | enableMotor (bool b) |
bool | isMotorEnabled () const |
btScalar | getMaxMotorImpulse () const |
bool | isMaxMotorImpulseNormalized () const |
void | setMaxMotorImpulse (btScalar maxMotorImpulse) |
void | setMaxMotorImpulseNormalized (btScalar maxMotorImpulse) |
btScalar | getFixThresh () |
void | setFixThresh (btScalar fixThresh) |
void | setMotorTarget (const btQuaternion &q) |
const btQuaternion & | getMotorTarget () const |
void | setMotorTargetInConstraintSpace (const btQuaternion &q) |
btVector3 | GetPointForAngle (btScalar fAngleInRadians, btScalar fLength) const |
virtual void | setParam (int num, btScalar value, int axis=-1) |
override the default global value of a parameter (such as ERP or CFM), optionally provide the axis (0..5). More... | |
virtual void | setFrames (const btTransform &frameA, const btTransform &frameB) |
const btTransform & | getFrameOffsetA () const |
const btTransform & | getFrameOffsetB () const |
virtual btScalar | getParam (int num, int axis=-1) const |
return the local value of parameter More... | |
int | getFlags () const |
virtual int | calculateSerializeBufferSize () const |
virtual const char * | serialize (void *dataBuffer, btSerializer *serializer) const |
fills the dataBuffer and returns the struct name (and 0 on failure) More... | |
Public Member Functions inherited from btTypedConstraint | |
BT_DECLARE_ALIGNED_ALLOCATOR () | |
virtual | ~btTypedConstraint () |
btTypedConstraint (btTypedConstraintType type, btRigidBody &rbA) | |
btTypedConstraint (btTypedConstraintType type, btRigidBody &rbA, btRigidBody &rbB) | |
int | getOverrideNumSolverIterations () const |
void | setOverrideNumSolverIterations (int overideNumIterations) |
override the number of constraint solver iterations used to solve this constraint -1 will use the default number of iterations, as specified in SolverInfo.m_numIterations More... | |
virtual void | buildJacobian () |
internal method used by the constraint solver, don't use them directly More... | |
virtual void | setupSolverConstraint (btConstraintArray &ca, int solverBodyA, int solverBodyB, btScalar timeStep) |
internal method used by the constraint solver, don't use them directly More... | |
virtual void | getInfo1 (btConstraintInfo1 *info)=0 |
internal method used by the constraint solver, don't use them directly More... | |
virtual void | getInfo2 (btConstraintInfo2 *info)=0 |
internal method used by the constraint solver, don't use them directly More... | |
void | internalSetAppliedImpulse (btScalar appliedImpulse) |
internal method used by the constraint solver, don't use them directly More... | |
btScalar | internalGetAppliedImpulse () |
internal method used by the constraint solver, don't use them directly More... | |
btScalar | getBreakingImpulseThreshold () const |
void | setBreakingImpulseThreshold (btScalar threshold) |
bool | isEnabled () const |
void | setEnabled (bool enabled) |
virtual void | solveConstraintObsolete (btSolverBody &, btSolverBody &, btScalar) |
internal method used by the constraint solver, don't use them directly More... | |
const btRigidBody & | getRigidBodyA () const |
const btRigidBody & | getRigidBodyB () const |
btRigidBody & | getRigidBodyA () |
btRigidBody & | getRigidBodyB () |
int | getUserConstraintType () const |
void | setUserConstraintType (int userConstraintType) |
void | setUserConstraintId (int uid) |
int | getUserConstraintId () const |
void | setUserConstraintPtr (void *ptr) |
void * | getUserConstraintPtr () |
void | setJointFeedback (btJointFeedback *jointFeedback) |
const btJointFeedback * | getJointFeedback () const |
btJointFeedback * | getJointFeedback () |
int | getUid () const |
bool | needsFeedback () const |
void | enableFeedback (bool needsFeedback) |
enableFeedback will allow to read the applied linear and angular impulse use getAppliedImpulse, getAppliedLinearImpulse and getAppliedAngularImpulse to read feedback information More... | |
btScalar | getAppliedImpulse () const |
getAppliedImpulse is an estimated total applied impulse. More... | |
btTypedConstraintType | getConstraintType () const |
void | setDbgDrawSize (btScalar dbgDrawSize) |
btScalar | getDbgDrawSize () |
virtual void | setParam (int num, btScalar value, int axis=-1)=0 |
override the default global value of a parameter (such as ERP or CFM), optionally provide the axis (0..5). More... | |
virtual btScalar | getParam (int num, int axis=-1) const =0 |
return the local value of parameter More... | |
virtual int | calculateSerializeBufferSize () const |
virtual const char * | serialize (void *dataBuffer, btSerializer *serializer) const |
fills the dataBuffer and returns the struct name (and 0 on failure) More... | |
Public Member Functions inherited from btTypedObject | |
btTypedObject (int objectType) | |
int | getObjectType () const |
Protected Member Functions | |
void | init () |
void | computeConeLimitInfo (const btQuaternion &qCone, btScalar &swingAngle, btVector3 &vSwingAxis, btScalar &swingLimit) |
void | computeTwistLimitInfo (const btQuaternion &qTwist, btScalar &twistAngle, btVector3 &vTwistAxis) |
void | adjustSwingAxisToUseEllipseNormal (btVector3 &vSwingAxis) const |
Protected Member Functions inherited from btTypedConstraint | |
btScalar | getMotorFactor (btScalar pos, btScalar lowLim, btScalar uppLim, btScalar vel, btScalar timeFact) |
internal method used by the constraint solver, don't use them directly More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from btTypedConstraint | |
static btRigidBody & | getFixedBody () |
Public Attributes inherited from btTypedObject | |
int | m_objectType |
Protected Attributes inherited from btTypedConstraint | |
btRigidBody & | m_rbA |
btRigidBody & | m_rbB |
btScalar | m_appliedImpulse |
btScalar | m_dbgDrawSize |
btJointFeedback * | m_jointFeedback |
btConeTwistConstraint can be used to simulate ragdoll joints (upper arm, leg etc)
Definition at line 57 of file btConeTwistConstraint.h.
btConeTwistConstraint::btConeTwistConstraint | ( | btRigidBody & | rbA, |
btRigidBody & | rbB, | ||
const btTransform & | rbAFrame, | ||
const btTransform & | rbBFrame | ||
) |
Definition at line 35 of file btConeTwistConstraint.cpp.
btConeTwistConstraint::btConeTwistConstraint | ( | btRigidBody & | rbA, |
const btTransform & | rbAFrame | ||
) |
Definition at line 42 of file btConeTwistConstraint.cpp.
|
protected |
Definition at line 929 of file btConeTwistConstraint.cpp.
btConeTwistConstraint::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
|
virtual |
internal method used by the constraint solver, don't use them directly
Reimplemented from btTypedConstraint.
Definition at line 246 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::calcAngleInfo | ( | ) |
Definition at line 515 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::calcAngleInfo2 | ( | const btTransform & | transA, |
const btTransform & | transB, | ||
const btMatrix3x3 & | invInertiaWorldA, | ||
const btMatrix3x3 & | invInertiaWorldB | ||
) |
Definition at line 604 of file btConeTwistConstraint.cpp.
|
inlinevirtual |
Reimplemented from btTypedConstraint.
Definition at line 398 of file btConeTwistConstraint.h.
|
protected |
Definition at line 807 of file btConeTwistConstraint.cpp.
|
protected |
Definition at line 904 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 298 of file btConeTwistConstraint.h.
|
inline |
Definition at line 244 of file btConeTwistConstraint.h.
|
inline |
Definition at line 165 of file btConeTwistConstraint.h.
|
inline |
Definition at line 245 of file btConeTwistConstraint.h.
|
inline |
Definition at line 281 of file btConeTwistConstraint.h.
|
inline |
Definition at line 295 of file btConeTwistConstraint.h.
|
inline |
Definition at line 313 of file btConeTwistConstraint.h.
|
inline |
Definition at line 347 of file btConeTwistConstraint.h.
|
inline |
Definition at line 334 of file btConeTwistConstraint.h.
|
inline |
Definition at line 339 of file btConeTwistConstraint.h.
|
virtual |
internal method used by the constraint solver, don't use them directly
Implements btTypedConstraint.
Definition at line 67 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::getInfo1NonVirtual | ( | btConstraintInfo1 * | info | ) |
Definition at line 97 of file btConeTwistConstraint.cpp.
|
virtual |
internal method used by the constraint solver, don't use them directly
Implements btTypedConstraint.
Definition at line 104 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::getInfo2NonVirtual | ( | btConstraintInfo2 * | info, |
const btTransform & | transA, | ||
const btTransform & | transB, | ||
const btMatrix3x3 & | invInertiaWorldA, | ||
const btMatrix3x3 & | invInertiaWorldB | ||
) |
Definition at line 109 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 195 of file btConeTwistConstraint.h.
|
inline |
Definition at line 277 of file btConeTwistConstraint.h.
|
inline |
Definition at line 300 of file btConeTwistConstraint.h.
|
inline |
Definition at line 321 of file btConeTwistConstraint.h.
|
virtual |
return the local value of parameter
Implements btTypedConstraint.
Definition at line 1066 of file btConeTwistConstraint.cpp.
btVector3 btConeTwistConstraint::GetPointForAngle | ( | btScalar | fAngleInRadians, |
btScalar | fLength | ||
) | const |
Definition at line 871 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 285 of file btConeTwistConstraint.h.
|
inline |
Definition at line 151 of file btConeTwistConstraint.h.
|
inline |
Definition at line 155 of file btConeTwistConstraint.h.
|
inline |
Definition at line 252 of file btConeTwistConstraint.h.
|
inline |
Definition at line 247 of file btConeTwistConstraint.h.
|
inline |
Definition at line 265 of file btConeTwistConstraint.h.
|
inline |
Definition at line 269 of file btConeTwistConstraint.h.
|
inline |
Definition at line 289 of file btConeTwistConstraint.h.
|
inline |
Definition at line 257 of file btConeTwistConstraint.h.
|
inline |
Definition at line 273 of file btConeTwistConstraint.h.
|
protected |
Definition at line 50 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 301 of file btConeTwistConstraint.h.
|
inline |
Definition at line 299 of file btConeTwistConstraint.h.
|
inline |
Definition at line 293 of file btConeTwistConstraint.h.
|
inlinevirtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btTypedConstraint.
Definition at line 404 of file btConeTwistConstraint.h.
|
inline |
Definition at line 160 of file btConeTwistConstraint.h.
|
inline |
Definition at line 296 of file btConeTwistConstraint.h.
|
inline |
Definition at line 314 of file btConeTwistConstraint.h.
|
virtual |
Definition at line 1110 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 233 of file btConeTwistConstraint.h.
|
inline |
Definition at line 170 of file btConeTwistConstraint.h.
|
inline |
Definition at line 302 of file btConeTwistConstraint.h.
|
inline |
Definition at line 307 of file btConeTwistConstraint.h.
void btConeTwistConstraint::setMotorTarget | ( | const btQuaternion & | q | ) |
Definition at line 961 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::setMotorTargetInConstraintSpace | ( | const btQuaternion & | q | ) |
Definition at line 974 of file btConeTwistConstraint.cpp.
|
virtual |
override the default global value of a parameter (such as ERP or CFM), optionally provide the axis (0..5).
If no axis is provided, it uses the default axis for this constraint.
Implements btTypedConstraint.
Definition at line 1030 of file btConeTwistConstraint.cpp.
|
virtual |
internal method used by the constraint solver, don't use them directly
solve angular part
Reimplemented from btTypedConstraint.
Definition at line 292 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::updateRHS | ( | btScalar | timeStep | ) |
Definition at line 509 of file btConeTwistConstraint.cpp.
|
private |
Definition at line 111 of file btConeTwistConstraint.h.
|
private |
Definition at line 92 of file btConeTwistConstraint.h.
|
private |
Definition at line 93 of file btConeTwistConstraint.h.
|
private |
Definition at line 117 of file btConeTwistConstraint.h.
|
private |
Definition at line 95 of file btConeTwistConstraint.h.
|
private |
Definition at line 69 of file btConeTwistConstraint.h.
|
private |
Definition at line 107 of file btConeTwistConstraint.h.
|
private |
Definition at line 108 of file btConeTwistConstraint.h.
|
private |
Definition at line 72 of file btConeTwistConstraint.h.
|
private |
Definition at line 78 of file btConeTwistConstraint.h.
|
private |
Definition at line 114 of file btConeTwistConstraint.h.
|
private |
Definition at line 63 of file btConeTwistConstraint.h.
|
private |
Definition at line 83 of file btConeTwistConstraint.h.
|
private |
Definition at line 84 of file btConeTwistConstraint.h.
|
private |
Definition at line 68 of file btConeTwistConstraint.h.
|
private |
Definition at line 115 of file btConeTwistConstraint.h.
|
private |
Definition at line 116 of file btConeTwistConstraint.h.
|
private |
Definition at line 110 of file btConeTwistConstraint.h.
|
private |
Definition at line 109 of file btConeTwistConstraint.h.
|
private |
Definition at line 65 of file btConeTwistConstraint.h.
|
private |
Definition at line 66 of file btConeTwistConstraint.h.
|
private |
Definition at line 70 of file btConeTwistConstraint.h.
|
private |
Definition at line 97 of file btConeTwistConstraint.h.
|
private |
Definition at line 96 of file btConeTwistConstraint.h.
|
private |
Definition at line 80 of file btConeTwistConstraint.h.
|
private |
Definition at line 87 of file btConeTwistConstraint.h.
|
private |
Definition at line 102 of file btConeTwistConstraint.h.
|
private |
Definition at line 74 of file btConeTwistConstraint.h.
|
private |
Definition at line 75 of file btConeTwistConstraint.h.
|
private |
Definition at line 90 of file btConeTwistConstraint.h.
|
private |
Definition at line 81 of file btConeTwistConstraint.h.
|
private |
Definition at line 104 of file btConeTwistConstraint.h.
|
private |
Definition at line 88 of file btConeTwistConstraint.h.
|
private |
Definition at line 103 of file btConeTwistConstraint.h.
|
private |
Definition at line 86 of file btConeTwistConstraint.h.
|
private |
Definition at line 76 of file btConeTwistConstraint.h.
|
private |
Definition at line 99 of file btConeTwistConstraint.h.