chenynCV / bullet

Automatically exported from code.google.com/p/bullet
Other
0 stars 0 forks source link

btQuaternion::slerp returns NaN for some inputs #665

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
btQuaternion::slerp suffers from some numerical problems. When used for very 
similar quaternions, it is possible that btFabs(product) > 1 holds. This will 
cause a call to btAcos with an invalid argument, ultimately resulting in a 
quaternion full of NaN's.

The attached patch fixes the problem.

Original issue reported on code.google.com by martin.heistermann on 26 Oct 2012 at 9:55

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for your help, I'll check it out soon.

Original comment by erwin.coumans on 26 Oct 2012 at 10:05

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2623.

Original comment by erwin.coumans on 25 Nov 2012 at 5:19