mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 19:36:45 +02:00
use fabsf() rather than fabs()
This commit is contained in:
parent
10b3e7fc67
commit
d749c0c8be
1 changed files with 2 additions and 2 deletions
|
@ -267,8 +267,8 @@ const btCollisionShape* ShapeFactory::createShapeFromInfo(const ShapeInfo& info)
|
||||||
const float MIN_RADIUS = 0.001f;
|
const float MIN_RADIUS = 0.001f;
|
||||||
const float MIN_RELATIVE_SPHERICAL_ERROR = 0.001f;
|
const float MIN_RELATIVE_SPHERICAL_ERROR = 0.001f;
|
||||||
if (radius > MIN_RADIUS
|
if (radius > MIN_RADIUS
|
||||||
&& fabs(radius - halfExtents.y) / radius < MIN_RELATIVE_SPHERICAL_ERROR
|
&& fabsf(radius - halfExtents.y) / radius < MIN_RELATIVE_SPHERICAL_ERROR
|
||||||
&& fabs(radius - halfExtents.z) / radius < MIN_RELATIVE_SPHERICAL_ERROR) {
|
&& fabsf(radius - halfExtents.z) / radius < MIN_RELATIVE_SPHERICAL_ERROR) {
|
||||||
// close enough to true sphere
|
// close enough to true sphere
|
||||||
shape = new btSphereShape(radius);
|
shape = new btSphereShape(radius);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue