|
Bullet Collision Detection & Physics Library
|
The btGeatConstraint will couple the angular velocity for two bodies around given local axis and ratio. More...
#include <btGearConstraint.h>


Protected Attributes | |
| btVector3 | m_axisInA |
| btVector3 | m_axisInB |
| bool | m_useFrameA |
| btScalar | m_ratio |
Protected Attributes inherited from btTypedConstraint | |
| btRigidBody & | m_rbA |
| btRigidBody & | m_rbB |
| btScalar | m_appliedImpulse |
| btScalar | m_dbgDrawSize |
| btJointFeedback * | m_jointFeedback |
Additional Inherited Members | |
Static Public Member Functions inherited from btTypedConstraint | |
| static btRigidBody & | getFixedBody () |
Public Attributes inherited from btTypedObject | |
| int | m_objectType |
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 | |
The btGeatConstraint will couple the angular velocity for two bodies around given local axis and ratio.
See Bullet/Demos/ConstraintDemo for an example use.
Definition at line 36 of file btGearConstraint.h.
| btGearConstraint::btGearConstraint | ( | btRigidBody & | rbA, |
| btRigidBody & | rbB, | ||
| const btVector3 & | axisInA, | ||
| const btVector3 & | axisInB, | ||
| btScalar | ratio = 1.f ) |
Implemented by Erwin Coumans. The idea for the constraint comes from Dimitris Papavasiliou.
Definition at line 20 of file btGearConstraint.cpp.
|
virtual |
Definition at line 28 of file btGearConstraint.cpp.
|
inlinevirtual |
Reimplemented from btTypedConstraint.
Definition at line 128 of file btGearConstraint.h.
Definition at line 66 of file btGearConstraint.h.
Definition at line 70 of file btGearConstraint.h.
|
virtual |
internal method used by the constraint solver, don't use them directly
Implements btTypedConstraint.
Definition at line 32 of file btGearConstraint.cpp.
|
virtual |
internal method used by the constraint solver, don't use them directly
Implements btTypedConstraint.
Definition at line 38 of file btGearConstraint.cpp.
return the local value of parameter
Implements btTypedConstraint.
Definition at line 89 of file btGearConstraint.h.
|
inline |
Definition at line 74 of file btGearConstraint.h.
|
inlinevirtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btTypedConstraint.
Definition at line 134 of file btGearConstraint.h.
Definition at line 54 of file btGearConstraint.h.
Definition at line 58 of file btGearConstraint.h.
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 80 of file btGearConstraint.h.
Definition at line 62 of file btGearConstraint.h.
|
protected |
Definition at line 39 of file btGearConstraint.h.
|
protected |
Definition at line 40 of file btGearConstraint.h.
|
protected |
Definition at line 42 of file btGearConstraint.h.
|
protected |
Definition at line 41 of file btGearConstraint.h.