How precision of object in bepu

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
parapoohda
Posts: 92
Joined: Fri May 31, 2019 6:30 am

How precision of object in bepu

Post by parapoohda » Fri Feb 28, 2020 8:03 am

I try to make a pizza shape with height by combine hull with a cylinder(If the angle is less than 90 degrees). But it seem hull sometime bigger some time smaller. So is it because bepu is round up number?

Norbo
Site Admin
Posts: 4889
Joined: Tue Jul 04, 2006 4:45 am

Re: How precision of object in bepu

Post by Norbo » Fri Feb 28, 2020 7:48 pm

In v2, collision detection is as close to the shape definition as numerically feasible. Some 'rounding' will be done in the sense that single precision floating point numbers have finite precision, but if you're working at scales of about 1 unit, the resulting errors would be significantly less than 1e-5.

v1 had collision margins which made things a little less obvious, but v2 doesn't have those.

parapoohda
Posts: 92
Joined: Fri May 31, 2019 6:30 am

Re: How precision of object in bepu

Post by parapoohda » Sat Feb 29, 2020 3:59 am

Maybe it was because of other reasons. Because in range 1 - 10 its difference is more than 0.1f.
Thank you. :):)

Post Reply