pombreda / bullet

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

expression error at btScalar.h #773

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Answer: 
Using btDegrees function:
"#define SIMD_DEGS_PER_RAD  (btScalar(360.0) / SIMD_2_PI)"
"SIMD_FORCE_INLINE btScalar btDegrees(btScalar x) { return x * 
SIMD_DEGS_PER_RAD; }"

Need to replace 
"#define SIMD_2_PI         btScalar(2.0) * SIMD_PI"
by
"#define SIMD_2_PI         (SIMD_PI * btScalar(2.0))"

What version of the product are you using? On what operating system?
Answer: 2.82

Original issue reported on code.google.com by creagame...@gmail.com on 26 Nov 2013 at 3:46

GoogleCodeExporter commented 9 years ago
That is a good find, and a stupid bug, fixed in latest trunk:
https://code.google.com/p/bullet/source/detail?r=2717

Thanks for reporting!

Original comment by erwin.coumans on 26 Nov 2013 at 5:15