TypedConstraint is the baseclass for Bullet constraints and vehicles. More...
#include <btTypedConstraint.h>


Classes | |
| struct | btConstraintInfo1 |
| struct | btConstraintInfo2 |
Public Member Functions | |
| virtual | ~btTypedConstraint () |
| btTypedConstraint (btTypedConstraintType type, btRigidBody &rbA) | |
| btTypedConstraint (btTypedConstraintType type, btRigidBody &rbA, btRigidBody &rbB) | |
| virtual void | buildJacobian () |
| internal method used by the constraint solver, don't use them directly | |
| virtual void | setupSolverConstraint (btConstraintArray &ca, int solverBodyA, int solverBodyB, btScalar timeStep) |
| internal method used by the constraint solver, don't use them directly | |
| virtual void | getInfo1 (btConstraintInfo1 *info)=0 |
| internal method used by the constraint solver, don't use them directly | |
| virtual void | getInfo2 (btConstraintInfo2 *info)=0 |
| internal method used by the constraint solver, don't use them directly | |
| void | internalSetAppliedImpulse (btScalar appliedImpulse) |
| internal method used by the constraint solver, don't use them directly | |
| btScalar | internalGetAppliedImpulse () |
| internal method used by the constraint solver, don't use them directly | |
| virtual void | solveConstraintObsolete (btRigidBody &bodyA, btRigidBody &bodyB, btScalar timeStep) |
| internal method used by the constraint solver, don't use them directly | |
| 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 |
| 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 | |
| btScalar | getAppliedImpulse () const |
| getAppliedImpulse is an estimated total applied impulse. | |
| 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). | |
| virtual btScalar | getParam (int num, int axis=-1) const =0 |
| return the local value of parameter | |
| 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) | |
Protected Member Functions | |
| btScalar | getMotorFactor (btScalar pos, btScalar lowLim, btScalar uppLim, btScalar vel, btScalar timeFact) |
| internal method used by the constraint solver, don't use them directly | |
Static Protected Member Functions | |
| static btRigidBody & | getFixedBody () |
Protected Attributes | |
| btRigidBody & | m_rbA |
| btRigidBody & | m_rbB |
| btScalar | m_appliedImpulse |
| btScalar | m_dbgDrawSize |
Private Member Functions | |
| btTypedConstraint & | operator= (btTypedConstraint &other) |
Private Attributes | |
| int | m_userConstraintType |
| int | m_userConstraintId |
| bool | m_needsFeedback |
TypedConstraint is the baseclass for Bullet constraints and vehicles.
Definition at line 53 of file btTypedConstraint.h.
| virtual btTypedConstraint::~btTypedConstraint | ( | ) | [inline, virtual] |
Definition at line 85 of file btTypedConstraint.h.
| btTypedConstraint::btTypedConstraint | ( | btTypedConstraintType | type, | |
| btRigidBody & | rbA | |||
| ) |
Definition at line 24 of file btTypedConstraint.cpp.
| btTypedConstraint::btTypedConstraint | ( | btTypedConstraintType | type, | |
| btRigidBody & | rbA, | |||
| btRigidBody & | rbB | |||
| ) |
Definition at line 37 of file btTypedConstraint.cpp.
| virtual void btTypedConstraint::buildJacobian | ( | ) | [inline, virtual] |
internal method used by the constraint solver, don't use them directly
Reimplemented in btConeTwistConstraint, btContactConstraint, btGeneric6DofConstraint, btHingeConstraint, and btPoint2PointConstraint.
Definition at line 125 of file btTypedConstraint.h.
| SIMD_FORCE_INLINE int btTypedConstraint::calculateSerializeBufferSize | ( | ) | const [virtual] |
Reimplemented in btConeTwistConstraint, btGeneric6DofConstraint, btHingeConstraint, btPoint2PointConstraint, and btSliderConstraint.
Definition at line 294 of file btTypedConstraint.h.
| void btTypedConstraint::enableFeedback | ( | bool | needsFeedback | ) | [inline] |
enableFeedback will allow to read the applied linear and angular impulse use getAppliedImpulse, getAppliedLinearImpulse and getAppliedAngularImpulse to read feedback information
Definition at line 207 of file btTypedConstraint.h.
| btScalar btTypedConstraint::getAppliedImpulse | ( | ) | const [inline] |
getAppliedImpulse is an estimated total applied impulse.
This feedback could be used to determine breaking constraints or playing sounds.
Definition at line 214 of file btTypedConstraint.h.
| btTypedConstraintType btTypedConstraint::getConstraintType | ( | ) | const [inline] |
Definition at line 220 of file btTypedConstraint.h.
| btScalar btTypedConstraint::getDbgDrawSize | ( | ) | [inline] |
Definition at line 229 of file btTypedConstraint.h.
| static btRigidBody& btTypedConstraint::getFixedBody | ( | ) | [inline, static, protected] |
Definition at line 75 of file btTypedConstraint.h.
| virtual void btTypedConstraint::getInfo1 | ( | btConstraintInfo1 * | info | ) | [pure virtual] |
internal method used by the constraint solver, don't use them directly
Implemented in btConeTwistConstraint, btContactConstraint, btGeneric6DofConstraint, btHingeConstraint, btPoint2PointConstraint, and btSliderConstraint.
| virtual void btTypedConstraint::getInfo2 | ( | btConstraintInfo2 * | info | ) | [pure virtual] |
internal method used by the constraint solver, don't use them directly
Implemented in btConeTwistConstraint, btContactConstraint, btGeneric6DofConstraint, btGeneric6DofSpringConstraint, btHingeConstraint, btPoint2PointConstraint, and btSliderConstraint.
| btScalar btTypedConstraint::getMotorFactor | ( | btScalar | pos, | |
| btScalar | lowLim, | |||
| btScalar | uppLim, | |||
| btScalar | vel, | |||
| btScalar | timeFact | |||
| ) | [protected] |
internal method used by the constraint solver, don't use them directly
Definition at line 52 of file btTypedConstraint.cpp.
| virtual btScalar btTypedConstraint::getParam | ( | int | num, | |
| int | axis = -1 | |||
| ) | const [pure virtual] |
return the local value of parameter
Implemented in btConeTwistConstraint, btGeneric6DofConstraint, btHingeConstraint, btPoint2PointConstraint, and btSliderConstraint.
| btRigidBody& btTypedConstraint::getRigidBodyA | ( | ) | [inline] |
Reimplemented in btHingeConstraint.
Definition at line 166 of file btTypedConstraint.h.
| const btRigidBody& btTypedConstraint::getRigidBodyA | ( | ) | const [inline] |
Reimplemented in btConeTwistConstraint, btHingeConstraint, and btSliderConstraint.
Definition at line 157 of file btTypedConstraint.h.
| btRigidBody& btTypedConstraint::getRigidBodyB | ( | ) | [inline] |
Reimplemented in btHingeConstraint.
Definition at line 170 of file btTypedConstraint.h.
| const btRigidBody& btTypedConstraint::getRigidBodyB | ( | ) | const [inline] |
Reimplemented in btConeTwistConstraint, btHingeConstraint, and btSliderConstraint.
Definition at line 161 of file btTypedConstraint.h.
| int btTypedConstraint::getUid | ( | ) | const [inline] |
Definition at line 195 of file btTypedConstraint.h.
| int btTypedConstraint::getUserConstraintId | ( | ) | const [inline] |
Definition at line 190 of file btTypedConstraint.h.
| int btTypedConstraint::getUserConstraintType | ( | ) | const [inline] |
Definition at line 175 of file btTypedConstraint.h.
| btScalar btTypedConstraint::internalGetAppliedImpulse | ( | ) | [inline] |
internal method used by the constraint solver, don't use them directly
Definition at line 148 of file btTypedConstraint.h.
| void btTypedConstraint::internalSetAppliedImpulse | ( | btScalar | appliedImpulse | ) | [inline] |
internal method used by the constraint solver, don't use them directly
Definition at line 143 of file btTypedConstraint.h.
| bool btTypedConstraint::needsFeedback | ( | ) | const [inline] |
Definition at line 200 of file btTypedConstraint.h.
| btTypedConstraint& btTypedConstraint::operator= | ( | btTypedConstraint & | other | ) | [inline, private] |
Reimplemented in btGeneric6DofConstraint.
Definition at line 59 of file btTypedConstraint.h.
| const char * btTypedConstraint::serialize | ( | void * | dataBuffer, | |
| btSerializer * | serializer | |||
| ) | const [virtual] |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented in btConeTwistConstraint, btGeneric6DofConstraint, btHingeConstraint, btPoint2PointConstraint, and btSliderConstraint.
Definition at line 102 of file btTypedConstraint.cpp.
| void btTypedConstraint::setDbgDrawSize | ( | btScalar | dbgDrawSize | ) | [inline] |
Definition at line 225 of file btTypedConstraint.h.
| virtual void btTypedConstraint::setParam | ( | int | num, | |
| btScalar | value, | |||
| int | axis = -1 | |||
| ) | [pure 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.
Implemented in btConeTwistConstraint, btGeneric6DofConstraint, btHingeConstraint, btPoint2PointConstraint, and btSliderConstraint.
| virtual void btTypedConstraint::setupSolverConstraint | ( | btConstraintArray & | ca, | |
| int | solverBodyA, | |||
| int | solverBodyB, | |||
| btScalar | timeStep | |||
| ) | [inline, virtual] |
internal method used by the constraint solver, don't use them directly
Definition at line 128 of file btTypedConstraint.h.
| void btTypedConstraint::setUserConstraintId | ( | int | uid | ) | [inline] |
Definition at line 185 of file btTypedConstraint.h.
| void btTypedConstraint::setUserConstraintType | ( | int | userConstraintType | ) | [inline] |
Definition at line 180 of file btTypedConstraint.h.
| virtual void btTypedConstraint::solveConstraintObsolete | ( | btRigidBody & | bodyA, | |
| btRigidBody & | bodyB, | |||
| btScalar | timeStep | |||
| ) | [inline, virtual] |
internal method used by the constraint solver, don't use them directly
Reimplemented in btConeTwistConstraint.
Definition at line 154 of file btTypedConstraint.h.
btScalar btTypedConstraint::m_appliedImpulse [protected] |
Definition at line 69 of file btTypedConstraint.h.
btScalar btTypedConstraint::m_dbgDrawSize [protected] |
Definition at line 70 of file btTypedConstraint.h.
bool btTypedConstraint::m_needsFeedback [private] |
Definition at line 57 of file btTypedConstraint.h.
btRigidBody& btTypedConstraint::m_rbA [protected] |
Definition at line 67 of file btTypedConstraint.h.
btRigidBody& btTypedConstraint::m_rbB [protected] |
Definition at line 68 of file btTypedConstraint.h.
int btTypedConstraint::m_userConstraintId [private] |
Definition at line 56 of file btTypedConstraint.h.
int btTypedConstraint::m_userConstraintType [private] |
Definition at line 55 of file btTypedConstraint.h.
1.6.1