Is 64bit supported?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Telanor
Posts: 57
Joined: Sun May 06, 2012 10:49 pm

Is 64bit supported?

Post 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?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Is 64bit supported?

Post 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.
Telanor
Posts: 57
Joined: Sun May 06, 2012 10:49 pm

Re: Is 64bit supported?

Post by Telanor »

Ok that fixed it, thanks
Post Reply