|
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) |
| void | setLimit (int limitIndex, btScalar limitValue) |
| void | setLimit (btScalar _swingSpan1, btScalar _swingSpan2, btScalar _twistSpan, btScalar _softness=1.f, btScalar _biasFactor=0.3f, btScalar _relaxationFactor=1.0f) |
| const btTransform & | getAFrame () |
| const btTransform & | getBFrame () |
| int | getSolveTwistLimit () |
| int | getSolveSwingLimit () |
| btScalar | getTwistLimitSign () |
| void | calcAngleInfo () |
| void | calcAngleInfo2 (const btTransform &transA, const btTransform &transB, const btMatrix3x3 &invInertiaWorldA, const btMatrix3x3 &invInertiaWorldB) |
| btScalar | getSwingSpan1 () |
| btScalar | getSwingSpan2 () |
| btScalar | getTwistSpan () |
| btScalar | getTwistAngle () |
| bool | isPastSwingLimit () |
| void | setDamping (btScalar damping) |
| void | enableMotor (bool b) |
| void | setMaxMotorImpulse (btScalar maxMotorImpulse) |
| void | setMaxMotorImpulseNormalized (btScalar maxMotorImpulse) |
| btScalar | getFixThresh () |
| void | setFixThresh (btScalar fixThresh) |
| void | setMotorTarget (const btQuaternion &q) |
| 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... | |
| 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 | setupSolverConstraint (btConstraintArray &ca, int solverBodyA, int solverBodyB, btScalar timeStep) |
| 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) |
| 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 () |
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 53 of file btConeTwistConstraint.h.
| btConeTwistConstraint::btConeTwistConstraint | ( | btRigidBody & | rbA, |
| btRigidBody & | rbB, | ||
| const btTransform & | rbAFrame, | ||
| const btTransform & | rbBFrame | ||
| ) |
Definition at line 41 of file btConeTwistConstraint.cpp.
| btConeTwistConstraint::btConeTwistConstraint | ( | btRigidBody & | rbA, |
| const btTransform & | rbAFrame | ||
| ) |
Definition at line 50 of file btConeTwistConstraint.cpp.
|
protected |
Definition at line 944 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 259 of file btConeTwistConstraint.cpp.
| void btConeTwistConstraint::calcAngleInfo | ( | ) |
Definition at line 532 of file btConeTwistConstraint.cpp.
| void btConeTwistConstraint::calcAngleInfo2 | ( | const btTransform & | transA, |
| const btTransform & | transB, | ||
| const btMatrix3x3 & | invInertiaWorldA, | ||
| const btMatrix3x3 & | invInertiaWorldB | ||
| ) |
Definition at line 623 of file btConeTwistConstraint.cpp.
|
inlinevirtual |
Reimplemented from btTypedConstraint.
Definition at line 321 of file btConeTwistConstraint.h.
|
protected |
Definition at line 821 of file btConeTwistConstraint.cpp.
|
protected |
Definition at line 918 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 253 of file btConeTwistConstraint.h.
|
inline |
Definition at line 212 of file btConeTwistConstraint.h.
|
inline |
Definition at line 213 of file btConeTwistConstraint.h.
|
inline |
Definition at line 257 of file btConeTwistConstraint.h.
|
inline |
Definition at line 277 of file btConeTwistConstraint.h.
|
inline |
Definition at line 282 of file btConeTwistConstraint.h.
|
virtual |
internal method used by the constraint solver, don't use them directly
Implements btTypedConstraint.
Definition at line 78 of file btConeTwistConstraint.cpp.
| void btConeTwistConstraint::getInfo1NonVirtual | ( | btConstraintInfo1 * | info) |
Definition at line 108 of file btConeTwistConstraint.cpp.
|
virtual |
internal method used by the constraint solver, don't use them directly
Implements btTypedConstraint.
Definition at line 117 of file btConeTwistConstraint.cpp.
| void btConeTwistConstraint::getInfo2NonVirtual | ( | btConstraintInfo2 * | info, |
| const btTransform & | transA, | ||
| const btTransform & | transB, | ||
| const btMatrix3x3 & | invInertiaWorldA, | ||
| const btMatrix3x3 & | invInertiaWorldB | ||
| ) |
Definition at line 122 of file btConeTwistConstraint.cpp.
|
virtual |
return the local value of parameter
Implements btTypedConstraint.
Definition at line 1080 of file btConeTwistConstraint.cpp.
| btVector3 btConeTwistConstraint::GetPointForAngle | ( | btScalar | fAngleInRadians, |
| btScalar | fLength | ||
| ) | const |
Definition at line 885 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 151 of file btConeTwistConstraint.h.
|
inline |
Definition at line 155 of file btConeTwistConstraint.h.
|
inline |
Definition at line 220 of file btConeTwistConstraint.h.
|
inline |
Definition at line 215 of file btConeTwistConstraint.h.
|
inline |
Definition at line 233 of file btConeTwistConstraint.h.
|
inline |
Definition at line 237 of file btConeTwistConstraint.h.
|
inline |
Definition at line 245 of file btConeTwistConstraint.h.
|
inline |
Definition at line 225 of file btConeTwistConstraint.h.
|
inline |
Definition at line 241 of file btConeTwistConstraint.h.
|
protected |
Definition at line 60 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 249 of file btConeTwistConstraint.h.
|
inlinevirtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btTypedConstraint.
Definition at line 329 of file btConeTwistConstraint.h.
|
inline |
Definition at line 160 of file btConeTwistConstraint.h.
|
inline |
Definition at line 251 of file btConeTwistConstraint.h.
|
inline |
Definition at line 258 of file btConeTwistConstraint.h.
|
virtual |
Definition at line 1125 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 165 of file btConeTwistConstraint.h.
|
inline |
Definition at line 201 of file btConeTwistConstraint.h.
|
inline |
Definition at line 254 of file btConeTwistConstraint.h.
|
inline |
Definition at line 255 of file btConeTwistConstraint.h.
| void btConeTwistConstraint::setMotorTarget | ( | const btQuaternion & | q) |
Definition at line 978 of file btConeTwistConstraint.cpp.
| void btConeTwistConstraint::setMotorTargetInConstraintSpace | ( | const btQuaternion & | q) |
Definition at line 992 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 1044 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 307 of file btConeTwistConstraint.cpp.
| void btConeTwistConstraint::updateRHS | ( | btScalar | timeStep) |
Definition at line 524 of file btConeTwistConstraint.cpp.
|
private |
Definition at line 106 of file btConeTwistConstraint.h.
|
private |
Definition at line 87 of file btConeTwistConstraint.h.
|
private |
Definition at line 88 of file btConeTwistConstraint.h.
|
private |
Definition at line 112 of file btConeTwistConstraint.h.
|
private |
Definition at line 90 of file btConeTwistConstraint.h.
|
private |
Definition at line 64 of file btConeTwistConstraint.h.
|
private |
Definition at line 102 of file btConeTwistConstraint.h.
|
private |
Definition at line 103 of file btConeTwistConstraint.h.
|
private |
Definition at line 67 of file btConeTwistConstraint.h.
|
private |
Definition at line 73 of file btConeTwistConstraint.h.
|
private |
Definition at line 109 of file btConeTwistConstraint.h.
|
private |
Definition at line 58 of file btConeTwistConstraint.h.
|
private |
Definition at line 78 of file btConeTwistConstraint.h.
|
private |
Definition at line 79 of file btConeTwistConstraint.h.
|
private |
Definition at line 63 of file btConeTwistConstraint.h.
|
private |
Definition at line 110 of file btConeTwistConstraint.h.
|
private |
Definition at line 111 of file btConeTwistConstraint.h.
|
private |
Definition at line 105 of file btConeTwistConstraint.h.
|
private |
Definition at line 104 of file btConeTwistConstraint.h.
|
private |
Definition at line 60 of file btConeTwistConstraint.h.
|
private |
Definition at line 61 of file btConeTwistConstraint.h.
|
private |
Definition at line 65 of file btConeTwistConstraint.h.
|
private |
Definition at line 92 of file btConeTwistConstraint.h.
|
private |
Definition at line 91 of file btConeTwistConstraint.h.
|
private |
Definition at line 75 of file btConeTwistConstraint.h.
|
private |
Definition at line 82 of file btConeTwistConstraint.h.
|
private |
Definition at line 97 of file btConeTwistConstraint.h.
|
private |
Definition at line 69 of file btConeTwistConstraint.h.
|
private |
Definition at line 70 of file btConeTwistConstraint.h.
|
private |
Definition at line 85 of file btConeTwistConstraint.h.
|
private |
Definition at line 76 of file btConeTwistConstraint.h.
|
private |
Definition at line 99 of file btConeTwistConstraint.h.
|
private |
Definition at line 83 of file btConeTwistConstraint.h.
|
private |
Definition at line 98 of file btConeTwistConstraint.h.
|
private |
Definition at line 81 of file btConeTwistConstraint.h.
|
private |
Definition at line 71 of file btConeTwistConstraint.h.
|
private |
Definition at line 94 of file btConeTwistConstraint.h.
1.8.4