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