@@ -29,8 +29,15 @@ INLINE BulletManifoldPoint::
29
29
// //////////////////////////////////////////////////////////////////
30
30
INLINE void BulletManifoldPoint::
31
31
set_lateral_friction_initialized (bool value) {
32
-
32
+ #if BT_BULLET_VERSION >= 285
33
+ if (value) {
34
+ _pt.m_contactPointFlags |= BT_CONTACT_FLAG_LATERAL_FRICTION_INITIALIZED;
35
+ } else {
36
+ _pt.m_contactPointFlags &= ~BT_CONTACT_FLAG_LATERAL_FRICTION_INITIALIZED;
37
+ }
38
+ #else
33
39
_pt.m_lateralFrictionInitialized = value;
40
+ #endif
34
41
}
35
42
36
43
// //////////////////////////////////////////////////////////////////
@@ -40,8 +47,11 @@ set_lateral_friction_initialized(bool value) {
40
47
// //////////////////////////////////////////////////////////////////
41
48
INLINE bool BulletManifoldPoint::
42
49
get_lateral_friction_initialized () const {
43
-
50
+ #if BT_BULLET_VERSION >= 285
51
+ return (_pt.m_contactPointFlags & BT_CONTACT_FLAG_LATERAL_FRICTION_INITIALIZED) != 0 ;
52
+ #else
44
53
return _pt.m_lateralFrictionInitialized ;
54
+ #endif
45
55
}
46
56
47
57
// //////////////////////////////////////////////////////////////////
@@ -238,8 +248,9 @@ get_applied_impulse_lateral2() const {
238
248
// //////////////////////////////////////////////////////////////////
239
249
INLINE void BulletManifoldPoint::
240
250
set_contact_cfm1 (PN_stdfloat value) {
241
-
251
+ # if BT_BULLET_VERSION < 285
242
252
_pt.m_contactCFM1 = (btScalar)value;
253
+ #endif
243
254
}
244
255
245
256
// //////////////////////////////////////////////////////////////////
@@ -249,8 +260,11 @@ set_contact_cfm1(PN_stdfloat value) {
249
260
// //////////////////////////////////////////////////////////////////
250
261
INLINE PN_stdfloat BulletManifoldPoint::
251
262
get_contact_cfm1 () const {
252
-
263
+ # if BT_BULLET_VERSION < 285
253
264
return (PN_stdfloat)_pt.m_contactCFM1 ;
265
+ #else
266
+ return 0 ;
267
+ #endif
254
268
}
255
269
256
270
// //////////////////////////////////////////////////////////////////
@@ -260,8 +274,9 @@ get_contact_cfm1() const {
260
274
// //////////////////////////////////////////////////////////////////
261
275
INLINE void BulletManifoldPoint::
262
276
set_contact_cfm2 (PN_stdfloat value) {
263
-
277
+ # if BT_BULLET_VERSION < 285
264
278
_pt.m_contactCFM2 = (btScalar)value;
279
+ #endif
265
280
}
266
281
267
282
// //////////////////////////////////////////////////////////////////
@@ -271,7 +286,10 @@ set_contact_cfm2(PN_stdfloat value) {
271
286
// //////////////////////////////////////////////////////////////////
272
287
INLINE PN_stdfloat BulletManifoldPoint::
273
288
get_contact_cfm2 () const {
274
-
289
+ # if BT_BULLET_VERSION < 285
275
290
return (PN_stdfloat)_pt.m_contactCFM2 ;
291
+ #else
292
+ return 0 ;
293
+ #endif
276
294
}
277
295
0 commit comments