Hi,
I'm trying to register btQuaternion and btVector3 (classes from Bullet Physics) classes in AngelScript as value objects. On Windows x86 and Linux x86 all works fine, but on Linux x64 I see problems with these classes. I use "asOBJ_VALUE|asOBJ_APP_CLASS_CDAK" for those classes. In script I see following results:
btRigidBodyObject.setGravity(btVector3(5.f, 6.f, 7.f));
btVector3 a(1.f, 2.f, 3.f);
float b = 1.f;
btQuaternion sample(a, b);
sample.getAxis().x(); // when I print this value I see data which I set in setGravity method, so 5.f, getAxis method return btVector3
Do you know where issue may exist? Why getAxis method return data from gravity? I tried asOBJ_APP_CLASS_ALLFLOATS for both btVector3 and btQuaternion, but it didn't help.
BTW. I disabled sse and allign to 16 bytes for bullet classes.
UPDATE:
I forgot to mention that on OSX x64 the same issue appear. I use the latest rev from trunk.
Cheers,