LEFT | RIGHT |
1 /* | 1 /* |
2 Bullet Continuous Collision Detection and Physics Library | 2 Bullet Continuous Collision Detection and Physics Library |
3 Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ | 3 Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ |
4 | 4 |
5 This software is provided 'as-is', without any express or implied warranty. | 5 This software is provided 'as-is', without any express or implied warranty. |
6 In no event will the authors be held liable for any damages arising from the use
of this software. | 6 In no event will the authors be held liable for any damages arising from the use
of this software. |
7 Permission is granted to anyone to use this software for any purpose,· | 7 Permission is granted to anyone to use this software for any purpose,· |
8 including commercial applications, and to alter it and redistribute it freely,· | 8 including commercial applications, and to alter it and redistribute it freely,· |
9 subject to the following restrictions: | 9 subject to the following restrictions: |
10 | 10 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 }; | 209 }; |
210 | 210 |
211 struct CcdConstructionInfo | 211 struct CcdConstructionInfo |
212 { | 212 { |
213 | 213 |
214 ///CollisionFilterGroups provides some optional usage of basic collision
filtering | 214 ///CollisionFilterGroups provides some optional usage of basic collision
filtering |
215 ///this is done during broadphase, so very early in the pipeline | 215 ///this is done during broadphase, so very early in the pipeline |
216 ///more advanced collision filtering should be done in btCollisionDispat
cher::NeedsCollision | 216 ///more advanced collision filtering should be done in btCollisionDispat
cher::NeedsCollision |
217 enum CollisionFilterGroups | 217 enum CollisionFilterGroups |
218 { | 218 { |
219 » DefaultFilter = 1, | 219 » » DefaultFilter = 1, |
220 » StaticFilter = 2, | 220 » » StaticFilter = 2, |
221 » KinematicFilter = 4, | 221 » » KinematicFilter = 4, |
222 » DebrisFilter = 8, | 222 » » DebrisFilter = 8, |
223 » » » SensorFilter = 16, | 223 » » SensorFilter = 16, |
224 » » » UserFilter = 1<<8 | 1<<9 | 1<<10 | 1<<11 | 1<<12 | 1<<13
| 1<<14 | 1<<15, | 224 » » UserFilter = 1<<8 | 1<<9 | 1<<10 | 1<<11 | 1<<12 | 1<<13 | 1<<14
| 1<<15, |
225 » AllFilter = StaticFilter | KinematicFilter | DebrisFilter | Sens
orFilter | UserFilter, | 225 » » AllFilter = DefaultFilter | StaticFilter | KinematicFilter | Deb
risFilter | SensorFilter, |
226 }; | 226 }; |
227 | 227 |
228 | 228 |
229 CcdConstructionInfo() | 229 CcdConstructionInfo() |
230 :m_localInertiaTensor(1.f, 1.f, 1.f), | 230 :m_localInertiaTensor(1.f, 1.f, 1.f), |
231 m_gravity(0,0,0), | 231 m_gravity(0,0,0), |
232 m_scaling(1.f,1.f,1.f), | 232 m_scaling(1.f,1.f,1.f), |
233 m_mass(0.f), | 233 m_mass(0.f), |
234 m_clamp_vel_min(-1.f), | 234 m_clamp_vel_min(-1.f), |
235 m_clamp_vel_max(-1.f), | 235 m_clamp_vel_max(-1.f), |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 ········ | 651 ········ |
652 #ifdef WITH_CXX_GUARDEDALLOC | 652 #ifdef WITH_CXX_GUARDEDALLOC |
653 public: | 653 public: |
654 void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE
:DefaultMotionState"); } | 654 void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE
:DefaultMotionState"); } |
655 void operator delete( void *mem ) { MEM_freeN(mem); } | 655 void operator delete( void *mem ) { MEM_freeN(mem); } |
656 #endif | 656 #endif |
657 }; | 657 }; |
658 | 658 |
659 | 659 |
660 #endif //BULLET2_PHYSICSCONTROLLER_H | 660 #endif //BULLET2_PHYSICSCONTROLLER_H |
LEFT | RIGHT |