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

Here's the place to get help and discuss features. The focus is on the C++ version, but generic questions are welcome.
null_pointer_2303
Posts: 1
Joined: Thu Dec 14, 2017 2:04 am

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

Postby null_pointer_2303 » Thu Dec 14, 2017 2:10 am

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.

Louis Langholtz
Posts: 22
Joined: Tue Dec 20, 2016 10:53 am

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

Postby Louis Langholtz » Wed Jan 03, 2018 11:10 am

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.


Return to “General Discussion”



Who is online

Users browsing this forum: No registered users and 4 guests