Changeset 8393 for code/trunk/src/external/bullet/BulletCollision/NarrowPhaseCollision/btManifoldPoint.h
- Timestamp:
- May 3, 2011, 5:07:42 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/external/bullet/BulletCollision/NarrowPhaseCollision/btManifoldPoint.h
r8351 r8393 14 14 */ 15 15 16 #ifndef MANIFOLD_CONTACT_POINT_H17 #define MANIFOLD_CONTACT_POINT_H16 #ifndef BT_MANIFOLD_CONTACT_POINT_H 17 #define BT_MANIFOLD_CONTACT_POINT_H 18 18 19 19 #include "LinearMath/btVector3.h" 20 20 #include "LinearMath/btTransformUtil.h" 21 21 22 // Don't change following order of parameters 23 ATTRIBUTE_ALIGNED16(struct) PfxConstraintRow { 24 btScalar mNormal[3]; 25 btScalar mRhs; 26 btScalar mJacDiagInv; 27 btScalar mLowerLimit; 28 btScalar mUpperLimit; 29 btScalar mAccumImpulse; 30 }; 31 22 #ifdef PFX_USE_FREE_VECTORMATH 23 #include "physics_effects/base_level/solver/pfx_constraint_row.h" 24 typedef sce::PhysicsEffects::PfxConstraintRow btConstraintRow; 25 #else 26 // Don't change following order of parameters 27 ATTRIBUTE_ALIGNED16(struct) btConstraintRow { 28 btScalar m_normal[3]; 29 btScalar m_rhs; 30 btScalar m_jacDiagInv; 31 btScalar m_lowerLimit; 32 btScalar m_upperLimit; 33 btScalar m_accumImpulse; 34 }; 35 typedef btConstraintRow PfxConstraintRow; 36 #endif //PFX_USE_FREE_VECTORMATH 32 37 33 38 … … 72 77 m_lifeTime(0) 73 78 { 74 mConstraintRow[0].m AccumImpulse = 0.f;75 mConstraintRow[1].m AccumImpulse = 0.f;76 mConstraintRow[2].m AccumImpulse = 0.f;79 mConstraintRow[0].m_accumImpulse = 0.f; 80 mConstraintRow[1].m_accumImpulse = 0.f; 81 mConstraintRow[2].m_accumImpulse = 0.f; 77 82 } 78 83 … … 114 119 115 120 116 PfxConstraintRow mConstraintRow[3];121 btConstraintRow mConstraintRow[3]; 117 122 118 123 … … 151 156 }; 152 157 153 #endif // MANIFOLD_CONTACT_POINT_H158 #endif //BT_MANIFOLD_CONTACT_POINT_H
Note: See TracChangeset
for help on using the changeset viewer.