diff options
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index 6d07b92..ae0bb11 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -480,12 +480,12 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
480 | case ProfileShape.HalfCircle: | 480 | case ProfileShape.HalfCircle: |
481 | if (_pbs.PathCurve == (byte)Extrusion.Curve1) | 481 | if (_pbs.PathCurve == (byte)Extrusion.Curve1) |
482 | { | 482 | { |
483 | if (_size.X == _size.Z && _size.Z == _size.X) | 483 | if (_size.X == _size.Y && _size.Y == _size.Z) |
484 | { | 484 | { |
485 | // regular sphere | 485 | // regular sphere |
486 | // v = 4/3 * pi * r^3 | 486 | // v = 4/3 * pi * r^3 |
487 | float sradius3 = (float)Math.Pow((_size.X / 2), 3); | 487 | float sradius3 = (float)Math.Pow((_size.X / 2), 3); |
488 | volume = (float)((4 / 3) * Math.PI * sradius3); | 488 | volume = (float)((4f / 3f) * Math.PI * sradius3); |
489 | } | 489 | } |
490 | else | 490 | else |
491 | { | 491 | { |