From e68a13f185795bafbf5912dfd3e3dea8a65317c6 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Fri, 12 Feb 2010 22:49:52 +0000 Subject: [PATCH] fixes to allow btStaticPlaneShape to be processed on SPU (alignment, non-virtual calls) --- src/BulletCollision/CollisionShapes/btStaticPlaneShape.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/BulletCollision/CollisionShapes/btStaticPlaneShape.h b/src/BulletCollision/CollisionShapes/btStaticPlaneShape.h index 61dee2dfd..beb53ef33 100644 --- a/src/BulletCollision/CollisionShapes/btStaticPlaneShape.h +++ b/src/BulletCollision/CollisionShapes/btStaticPlaneShape.h @@ -20,7 +20,7 @@ subject to the following restrictions: ///The btStaticPlaneShape simulates an infinite non-moving (static) collision plane. -class btStaticPlaneShape : public btConcaveShape +ATTRIBUTE_ALIGNED16(class) btStaticPlaneShape : public btConcaveShape { protected: btVector3 m_localAabbMin; @@ -98,3 +98,6 @@ SIMD_FORCE_INLINE const char* btStaticPlaneShape::serialize(void* dataBuffer, bt #endif //STATIC_PLANE_SHAPE_H + + +