Changeset 2907 for code/branches/questsystem5/src/bullet/BulletDynamics/ConstraintSolver/btHingeConstraint.h
- Timestamp:
- Apr 8, 2009, 12:36:08 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/bullet/BulletDynamics/ConstraintSolver/btHingeConstraint.h
r2662 r2907 54 54 55 55 btScalar m_accLimitImpulse; 56 btScalar m_hingeAngle; 57 btScalar m_referenceSign; 56 58 57 59 bool m_angularOnly; 58 60 bool m_enableAngularMotor; 59 61 bool m_solveLimit; 62 bool m_useSolveConstraintObsolete; 63 bool m_useReferenceFrameA; 60 64 61 65 62 66 public: 63 67 64 btHingeConstraint(btRigidBody& rbA,btRigidBody& rbB, const btVector3& pivotInA,const btVector3& pivotInB, btVector3& axisInA,btVector3& axisInB );68 btHingeConstraint(btRigidBody& rbA,btRigidBody& rbB, const btVector3& pivotInA,const btVector3& pivotInB, btVector3& axisInA,btVector3& axisInB, bool useReferenceFrameA = false); 65 69 66 btHingeConstraint(btRigidBody& rbA,const btVector3& pivotInA,btVector3& axisInA );70 btHingeConstraint(btRigidBody& rbA,const btVector3& pivotInA,btVector3& axisInA, bool useReferenceFrameA = false); 67 71 68 btHingeConstraint(btRigidBody& rbA,btRigidBody& rbB, const btTransform& rbAFrame, const btTransform& rbBFrame );72 btHingeConstraint(btRigidBody& rbA,btRigidBody& rbB, const btTransform& rbAFrame, const btTransform& rbBFrame, bool useReferenceFrameA = false); 69 73 70 btHingeConstraint(btRigidBody& rbA,const btTransform& rbAFrame );74 btHingeConstraint(btRigidBody& rbA,const btTransform& rbAFrame, bool useReferenceFrameA = false); 71 75 72 76 btHingeConstraint(); … … 74 78 virtual void buildJacobian(); 75 79 76 virtual void solveConstraint(btScalar timeStep); 80 virtual void getInfo1 (btConstraintInfo1* info); 81 82 virtual void getInfo2 (btConstraintInfo2* info); 83 84 virtual void solveConstraintObsolete(btSolverBody& bodyA,btSolverBody& bodyB,btScalar timeStep); 77 85 78 86 void updateRHS(btScalar timeStep); … … 87 95 } 88 96 97 btRigidBody& getRigidBodyA() 98 { 99 return m_rbA; 100 } 101 102 btRigidBody& getRigidBodyB() 103 { 104 return m_rbB; 105 } 106 89 107 void setAngularOnly(bool angularOnly) 90 108 { … … 123 141 btScalar getHingeAngle(); 124 142 143 void testLimit(); 144 125 145 126 146 const btTransform& getAFrame() { return m_rbAFrame; };
Note: See TracChangeset
for help on using the changeset viewer.