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 |
![]() | |
btRigidBody & | m_rbA |
btRigidBody & | m_rbB |
btScalar | m_appliedImpulse |
btScalar | m_dbgDrawSize |
btJointFeedback * | m_jointFeedback |
Additional Inherited Members | |
![]() | |
static btRigidBody & | getFixedBody () |
![]() | |
int | m_objectType |
![]() | |
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 31 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 119 of file btGearConstraint.h.
Definition at line 61 of file btGearConstraint.h.
Definition at line 65 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 83 of file btGearConstraint.h.
|
inline |
Definition at line 69 of file btGearConstraint.h.
|
inlinevirtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btTypedConstraint.
Definition at line 125 of file btGearConstraint.h.
Definition at line 49 of file btGearConstraint.h.
Definition at line 53 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 74 of file btGearConstraint.h.
Definition at line 57 of file btGearConstraint.h.
|
protected |
Definition at line 34 of file btGearConstraint.h.
|
protected |
Definition at line 35 of file btGearConstraint.h.
|
protected |
Definition at line 37 of file btGearConstraint.h.
|
protected |
Definition at line 36 of file btGearConstraint.h.