Open GoogleCodeExporter opened 9 years ago
I couldn't reproduce this, but can you try:
RigidBodyConstructionInfo ci = new RigidBodyConstructionInfo( 0, null, null,
Vector3.Zero );
I suspect that the C++/CLI compiler is trying to pass the default parameter
localInertia=btVector3(0,0,0) without alignment (alignment is required for SSE)
and Bullet reads the parameter from an unaligned address on the stack using SSE
instructions. So currently it might work only if the parameter happens to be
aligned to a 16-byte boundary.
A possible fix is to replace lines 439 and 455 in Rigidbody.cpp with:
#if defined(BT_USE_SSE_IN_API) && defined (BT_USE_SSE)
instead of:
#if defined(BT_USE_SSE_IN_API)
Original comment by andres.traks
on 28 May 2013 at 2:19
It worked using RigidBodyConstructionInfo ci = new RigidBodyConstructionInfo(
0, null, null, Vector3.Zero ); :)
Thanks!
Original comment by ma...@progressivemedia.dk
on 28 May 2013 at 2:25
Original issue reported on code.google.com by
ma...@progressivemedia.dk
on 28 May 2013 at 1:01