Page 1 of 1

Is 64bit supported?

Posted: Mon Jun 11, 2012 5:07 am
by Telanor
Does bepu support 64bit? I tried compiling the slimdx branch as 64bit and including it in my game but I get the following error when I run it:

Code: Select all

Could not load type 'EntityStateChange' from assembly 'BEPUphysics, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31f6a8732a21de19' because it contains an object field at offset 20 that is incorrectly aligned or overlapped by a non-object field.
Am I doing something wrong or does bepu not support 64bit?

Re: Is 64bit supported?

Posted: Mon Jun 11, 2012 3:19 pm
by Norbo
Looks like there's a little oops in the explicit layout of the EntityStateChange for 64 bit. The offset on the EntityStateChange.Entity field needs to be changed from 20 to 24 for 64 bit compilation. I'll update the Development version; for the forks, it'll probably be easiest to just make the change in EntityStateWriteBuffer.cs.

Re: Is 64bit supported?

Posted: Mon Jun 11, 2012 9:06 pm
by Telanor
Ok that fixed it, thanks