Changeset 2907 for code/branches/questsystem5/src/bullet/BulletDynamics/ConstraintSolver/btSolverConstraint.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/btSolverConstraint.h
r2662 r2907 20 20 #include "LinearMath/btVector3.h" 21 21 #include "LinearMath/btMatrix3x3.h" 22 #include "btJacobianEntry.h" 22 23 23 24 //#define NO_FRICTION_TANGENTIALS 1 25 #include "btSolverBody.h" 26 24 27 25 28 ///1D constraint along a normal axis between bodyA and bodyB. It can be combined to solve contact and friction constraints. … … 28 31 BT_DECLARE_ALIGNED_ALLOCATOR(); 29 32 30 btVector3 m_relpos1CrossNormal;31 btVector3 m_contactNormal;33 btVector3 m_relpos1CrossNormal; 34 btVector3 m_contactNormal; 32 35 33 btVector3 m_relpos2CrossNormal;34 btVector3 m_angularComponentA;36 btVector3 m_relpos2CrossNormal; 37 //btVector3 m_contactNormal2;//usually m_contactNormal2 == -m_contactNormal 35 38 36 btVector3 m_angularComponentB; 37 38 mutable btScalar m_appliedPushImpulse; 39 btVector3 m_angularComponentA; 40 btVector3 m_angularComponentB; 39 41 40 mutable btS calar m_appliedImpulse;41 int m_solverBodyIdA;42 int m_solverBodyIdB;42 mutable btSimdScalar m_appliedPushImpulse; 43 mutable btSimdScalar m_appliedImpulse; 44 43 45 44 46 btScalar m_friction; 45 btScalar m_restitution;46 47 btScalar m_jacDiagABInv; 47 btScalar m_penetration; 48 union 49 { 50 int m_numConsecutiveRowsPerKernel; 51 btScalar m_unusedPadding0; 52 }; 53 54 union 55 { 56 int m_frictionIndex; 57 btScalar m_unusedPadding1; 58 }; 59 union 60 { 61 int m_solverBodyIdA; 62 btScalar m_unusedPadding2; 63 }; 64 union 65 { 66 int m_solverBodyIdB; 67 btScalar m_unusedPadding3; 68 }; 48 69 70 union 71 { 72 void* m_originalContactPoint; 73 btScalar m_unusedPadding4; 74 }; 49 75 50 51 int m_constraintType; 52 int m_frictionIndex; 53 void* m_originalContactPoint; 54 int m_unusedPadding[1]; 55 76 btScalar m_rhs; 77 btScalar m_cfm; 78 btScalar m_lowerLimit; 79 btScalar m_upperLimit; 56 80 57 81 enum btSolverConstraintType … … 62 86 }; 63 87 64 65 66 88 typedef btAlignedObjectArray<btSolverConstraint> btConstraintArray; 67 89 68 90
Note: See TracChangeset
for help on using the changeset viewer.