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 62 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 950 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 263 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::calcAngleInfo | ( | ) |
Definition at line 536 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::calcAngleInfo2 | ( | const btTransform & | transA, |
const btTransform & | transB, | ||
const btMatrix3x3 & | invInertiaWorldA, | ||
const btMatrix3x3 & | invInertiaWorldB | ||
) |
Definition at line 627 of file btConeTwistConstraint.cpp.
|
inlinevirtual |
Reimplemented from btTypedConstraint.
Definition at line 353 of file btConeTwistConstraint.h.
|
protected |
Definition at line 827 of file btConeTwistConstraint.cpp.
|
protected |
Definition at line 924 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 262 of file btConeTwistConstraint.h.
|
inline |
Definition at line 221 of file btConeTwistConstraint.h.
|
inline |
Definition at line 222 of file btConeTwistConstraint.h.
|
inline |
Definition at line 266 of file btConeTwistConstraint.h.
|
inline |
Definition at line 286 of file btConeTwistConstraint.h.
|
inline |
Definition at line 291 of file btConeTwistConstraint.h.
|
virtual |
internal method used by the constraint solver, don't use them directly
Implements btTypedConstraint.
Definition at line 79 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::getInfo1NonVirtual | ( | btConstraintInfo1 * | info | ) |
Definition at line 109 of file btConeTwistConstraint.cpp.
|
virtual |
internal method used by the constraint solver, don't use them directly
Implements btTypedConstraint.
Definition at line 118 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::getInfo2NonVirtual | ( | btConstraintInfo2 * | info, |
const btTransform & | transA, | ||
const btTransform & | transB, | ||
const btMatrix3x3 & | invInertiaWorldA, | ||
const btMatrix3x3 & | invInertiaWorldB | ||
) |
Definition at line 123 of file btConeTwistConstraint.cpp.
|
virtual |
return the local value of parameter
Implements btTypedConstraint.
Definition at line 1086 of file btConeTwistConstraint.cpp.
btVector3 btConeTwistConstraint::GetPointForAngle | ( | btScalar | fAngleInRadians, |
btScalar | fLength | ||
) | const |
Definition at line 891 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 160 of file btConeTwistConstraint.h.
|
inline |
Definition at line 164 of file btConeTwistConstraint.h.
|
inline |
Definition at line 229 of file btConeTwistConstraint.h.
|
inline |
Definition at line 224 of file btConeTwistConstraint.h.
|
inline |
Definition at line 242 of file btConeTwistConstraint.h.
|
inline |
Definition at line 246 of file btConeTwistConstraint.h.
|
inline |
Definition at line 254 of file btConeTwistConstraint.h.
|
inline |
Definition at line 234 of file btConeTwistConstraint.h.
|
inline |
Definition at line 250 of file btConeTwistConstraint.h.
|
protected |
Definition at line 61 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 258 of file btConeTwistConstraint.h.
|
inlinevirtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btTypedConstraint.
Definition at line 361 of file btConeTwistConstraint.h.
|
inline |
Definition at line 169 of file btConeTwistConstraint.h.
|
inline |
Definition at line 260 of file btConeTwistConstraint.h.
|
inline |
Definition at line 267 of file btConeTwistConstraint.h.
|
virtual |
Definition at line 1131 of file btConeTwistConstraint.cpp.
|
inline |
Definition at line 174 of file btConeTwistConstraint.h.
|
inline |
Definition at line 210 of file btConeTwistConstraint.h.
|
inline |
Definition at line 263 of file btConeTwistConstraint.h.
|
inline |
Definition at line 264 of file btConeTwistConstraint.h.
void btConeTwistConstraint::setMotorTarget | ( | const btQuaternion & | q | ) |
Definition at line 984 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::setMotorTargetInConstraintSpace | ( | const btQuaternion & | q | ) |
Definition at line 998 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 1050 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 311 of file btConeTwistConstraint.cpp.
void btConeTwistConstraint::updateRHS | ( | btScalar | timeStep | ) |
Definition at line 528 of file btConeTwistConstraint.cpp.
|
private |
Definition at line 115 of file btConeTwistConstraint.h.
|
private |
Definition at line 96 of file btConeTwistConstraint.h.
|
private |
Definition at line 97 of file btConeTwistConstraint.h.
|
private |
Definition at line 121 of file btConeTwistConstraint.h.
|
private |
Definition at line 99 of file btConeTwistConstraint.h.
|
private |
Definition at line 73 of file btConeTwistConstraint.h.
|
private |
Definition at line 111 of file btConeTwistConstraint.h.
|
private |
Definition at line 112 of file btConeTwistConstraint.h.
|
private |
Definition at line 76 of file btConeTwistConstraint.h.
|
private |
Definition at line 82 of file btConeTwistConstraint.h.
|
private |
Definition at line 118 of file btConeTwistConstraint.h.
|
private |
Definition at line 67 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 72 of file btConeTwistConstraint.h.
|
private |
Definition at line 119 of file btConeTwistConstraint.h.
|
private |
Definition at line 120 of file btConeTwistConstraint.h.
|
private |
Definition at line 114 of file btConeTwistConstraint.h.
|
private |
Definition at line 113 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 74 of file btConeTwistConstraint.h.
|
private |
Definition at line 101 of file btConeTwistConstraint.h.
|
private |
Definition at line 100 of file btConeTwistConstraint.h.
|
private |
Definition at line 84 of file btConeTwistConstraint.h.
|
private |
Definition at line 91 of file btConeTwistConstraint.h.
|
private |
Definition at line 106 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 94 of file btConeTwistConstraint.h.
|
private |
Definition at line 85 of file btConeTwistConstraint.h.
|
private |
Definition at line 108 of file btConeTwistConstraint.h.
|
private |
Definition at line 92 of file btConeTwistConstraint.h.
|
private |
Definition at line 107 of file btConeTwistConstraint.h.
|
private |
Definition at line 90 of file btConeTwistConstraint.h.
|
private |
Definition at line 80 of file btConeTwistConstraint.h.
|
private |
Definition at line 103 of file btConeTwistConstraint.h.