Page 1 of 1

[Help] How to unable (use) fixed point mode in box2d

Posted: Thu Dec 14, 2017 2:10 am
by null_pointer_2303
I write code for box2d physic game. This game is online turn base game.
Now i want in all platform, with same input, game result the same.
Fixed point mode can reslove problem ?
if right, how to use it in box2d ? step by step.
Thank you for read my topic.

Re: [Help] How to unable (use) fixed point mode in box2d

Posted: Wed Jan 03, 2018 11:10 am
by Louis Langholtz
Hi null_pointer_2303.

Yes. An implementation of a fixed point numeric type could be completely 100% reproducible on all supported platforms. Actually any numeric type could be implemented to provide 100% reproducible results - at least on supported platforms.

How to use it is harder to explain. You might get the best info on such an endeavor by asking about this on StackOverflow.

I think it'd be easier to instead limit your box2d physics game's supported platforms to those you know provide equivalent floating-point support on.

Hope this helps.