Blender V2.61 - r43446
Public Member Functions | Public Attributes

btTranslationalLimitMotor Class Reference

#include <btGeneric6DofConstraint.h>

List of all members.

Public Member Functions

 btTranslationalLimitMotor ()
 btTranslationalLimitMotor (const btTranslationalLimitMotor &other)
bool isLimited (int limitIndex)
 Test limit.
bool needApplyForce (int limitIndex)
int testLimitValue (int limitIndex, btScalar test_value)
btScalar solveLinearAxis (btScalar timeStep, btScalar jacDiagABInv, btRigidBody &body1, const btVector3 &pointInA, btRigidBody &body2, const btVector3 &pointInB, int limit_index, const btVector3 &axis_normal_on_a, const btVector3 &anchorPos)

Public Attributes

btVector3 m_lowerLimit
 the constraint lower limits
btVector3 m_upperLimit
 the constraint upper limits
btVector3 m_accumulatedImpulse
bool m_enableMotor [3]
btVector3 m_targetVelocity
 target motor velocity
btVector3 m_maxMotorForce
 max force on motor
btVector3 m_currentLimitError
btVector3 m_currentLinearDiff
 How much is violated this limit.
int m_currentLimit [3]
 Current relative offset of constraint frames.
btScalar m_limitSoftness
 Softness for linear limit.
btScalar m_damping
 Damping for linear limit.
btScalar m_restitution
 Softness for linear limit.
btVector3 m_normalCFM
 Bounce parameter for linear limit.
btVector3 m_stopERP
 Error tolerance factor when joint is at limit.
btVector3 m_stopCFM

Detailed Description

Definition at line 132 of file btGeneric6DofConstraint.h.


Constructor & Destructor Documentation

btTranslationalLimitMotor::btTranslationalLimitMotor ( ) [inline]
btTranslationalLimitMotor::btTranslationalLimitMotor ( const btTranslationalLimitMotor other) [inline]

Member Function Documentation

bool btTranslationalLimitMotor::isLimited ( int  limitIndex) [inline]

Test limit.

  • free means upper < lower,
  • locked means upper == lower
  • limited means upper > lower
  • limitIndex: first 3 are linear, next 3 are angular

Definition at line 202 of file btGeneric6DofConstraint.h.

References m_lowerLimit, and m_upperLimit.

Referenced by btGeneric6DofConstraint::buildJacobian(), and btGeneric6DofConstraint::isLimited().

bool btTranslationalLimitMotor::needApplyForce ( int  limitIndex) [inline]
btScalar btTranslationalLimitMotor::solveLinearAxis ( btScalar  timeStep,
btScalar  jacDiagABInv,
btRigidBody body1,
const btVector3 &  pointInA,
btRigidBody body2,
const btVector3 &  pointInB,
int  limit_index,
const btVector3 &  axis_normal_on_a,
const btVector3 &  anchorPos 
)
int btTranslationalLimitMotor::testLimitValue ( int  limitIndex,
btScalar  test_value 
)

Member Data Documentation

Current relative offset of constraint frames.

0=free, 1=at lower limit, 2=at upper limit

Definition at line 152 of file btGeneric6DofConstraint.h.

Referenced by needApplyForce(), btGeneric6DofConstraint::setLinearLimits(), and testLimitValue().

How much is violated this limit.

Definition at line 151 of file btGeneric6DofConstraint.h.

Referenced by btGeneric6DofConstraint::calculateLinearInfo(), and btGeneric6DofConstraint::setLinearLimits().

Damping for linear limit.

Definition at line 141 of file btGeneric6DofConstraint.h.

Referenced by btTranslationalLimitMotor(), btGeneric6DofConstraint::setLinearLimits(), and solveLinearAxis().

Softness for linear limit.

Linear_Limit_parameters

Definition at line 140 of file btGeneric6DofConstraint.h.

Referenced by btTranslationalLimitMotor(), btGeneric6DofConstraint::setLinearLimits(), and solveLinearAxis().

Bounce parameter for linear limit.

Constraint force mixing factor

Definition at line 143 of file btGeneric6DofConstraint.h.

Referenced by btTranslationalLimitMotor(), btGeneric6DofConstraint::getParam(), btGeneric6DofConstraint::setLinearLimits(), and btGeneric6DofConstraint::setParam().

Softness for linear limit.

Linear_Limit_parameters

Definition at line 142 of file btGeneric6DofConstraint.h.

Referenced by btTranslationalLimitMotor(), and solveLinearAxis().


The documentation for this class was generated from the following files: