Blender V2.61 - r43446
Public Member Functions

btRotationalLimitMotor Class Reference

Rotation Limit structure for generic joints. More...

#include <btGeneric6DofConstraint.h>

List of all members.

Public Member Functions

 btRotationalLimitMotor ()
 btRotationalLimitMotor (const btRotationalLimitMotor &limot)
bool isLimited ()
 Is limited.
bool needApplyTorques ()
 Need apply correction.
int testLimitValue (btScalar test_value)
 calculates error
btScalar solveAngularLimits (btScalar timeStep, btVector3 &axis, btScalar jacDiagABInv, btRigidBody *body0, btRigidBody *body1)
 apply the correction impulses for two bodies

Public Attributes

btScalar m_loLimit
 joint limit
btScalar m_hiLimit
 joint limit
btScalar m_targetVelocity
 target motor velocity
btScalar m_maxMotorForce
 max force on motor
btScalar m_maxLimitForce
 max force on limit
btScalar m_damping
 Damping.
btScalar m_limitSoftness
 joint limit
btScalar m_normalCFM
 Relaxation factor.
btScalar m_stopERP
 Error tolerance factor when joint is at limit.
btScalar m_stopCFM
 Constraint force mixing factor when joint is at limit.
btScalar m_bounce
 restitution factor
bool m_enableMotor
 joint limit
btScalar m_currentLimitError
btScalar m_currentPosition
 How much is violated this limit.
int m_currentLimit
 current value of angle
btScalar m_accumulatedImpulse

Detailed Description

Rotation Limit structure for generic joints.

Definition at line 40 of file btGeneric6DofConstraint.h.


Constructor & Destructor Documentation

btRotationalLimitMotor::btRotationalLimitMotor ( ) [inline]
btRotationalLimitMotor::btRotationalLimitMotor ( const btRotationalLimitMotor limot) [inline]

Member Function Documentation

bool btRotationalLimitMotor::isLimited ( ) [inline]

Is limited.

Definition at line 106 of file btGeneric6DofConstraint.h.

References m_hiLimit, and m_loLimit.

Referenced by btGeneric6DofConstraint::isLimited().

bool btRotationalLimitMotor::needApplyTorques ( ) [inline]
btScalar btRotationalLimitMotor::solveAngularLimits ( btScalar  timeStep,
btVector3 &  axis,
btScalar  jacDiagABInv,
btRigidBody body0,
btRigidBody body1 
)
int btRotationalLimitMotor::testLimitValue ( btScalar  test_value)

calculates error

calculates m_currentLimit and m_currentLimitError.

Definition at line 122 of file btGeneric6DofConstraint.cpp.

References m_currentLimit, m_currentLimitError, m_hiLimit, and m_loLimit.

Referenced by btGeneric6DofConstraint::testAngularLimitMotor().


Member Data Documentation

joint limit

limit_parameters

Definition at line 51 of file btGeneric6DofConstraint.h.

Referenced by btRotationalLimitMotor(), btGeneric6DofConstraint::setLinearLimits(), and solveAngularLimits().


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