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