Fixed Point implementation

Adrick
Posts: 5
Joined: Fri Jul 22, 2011 7:53 am

Fixed Point implementation

Post by Adrick »

is there such a thing for bullet? if so how can I compiled/implement it?
User avatar
Dr.Shepherd
Posts: 168
Joined: Tue Jan 04, 2011 11:47 pm

Re: Fixed Point implementation

Post by Dr.Shepherd »

Adrick wrote:is there such a thing for bullet? if so how can I compiled/implement it?
what do you mean by fixed point? Any point in the world coordinate system can be regarded as "fixed", or any point on the static object can be regarded as fixed points as well.
zarlox
Posts: 31
Joined: Tue Apr 26, 2011 5:52 pm

Re: Fixed Point implementation

Post by zarlox »

I think he means using integer instead of float or double for the btScalar data type.

As far as i know, you can not. You can only choose single or double precision floating point.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Fixed Point implementation

Post by Erwin Coumans »

I'm not aware of any fixed-point implementation for Bullet. The similar Box2D library (2D instead of 3D) used to have some fixed-point implementation.

It would be possible and useful for some purposes indeed, such as cross-platform determinism/reproducability and improved performance for platforms without FPU,
but I don't know if anyone has time/motivation to work on this.
Thanks,
Erwin
User avatar
Dr.Shepherd
Posts: 168
Joined: Tue Jan 04, 2011 11:47 pm

Re: Fixed Point implementation

Post by Dr.Shepherd »

That's it...Fixed point....I misunderstood...