czaloj / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

ATTRIBUTE_ALIGNED16(class) btQuadWordStorage can cause issues when embedded in an unaligned object #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

We need to track all issues related to the alignment of a btQuadWordStorage 
(base class for btVector3, btQuaternion etc).

If the introduction of ATTRIBUTE_ALIGNED16 causes too many issues, we have 
to remove it.

See http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=18&t=2892

Original issue reported on code.google.com by erwin.coumans on 24 Nov 2008 at 4:30

GoogleCodeExporter commented 9 years ago

btVector cannot be used in a std::vector when using MSVC STL, due to some bugs.
http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=3136

Either use btAlignedObjectArray, or STL port, or manually hack MSVC STL.

Also, a btVector3 cannot be passed by value in some compilers, due to alignment 
issues.

For both cases a workaround is available.

Original comment by erwin.coumans on 6 Feb 2009 at 7:37

GoogleCodeExporter commented 9 years ago
no further reports related to this change, closing the issue

Original comment by erwin.coumans on 23 May 2009 at 2:38