aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
authorTeravus Ovares2009-03-05 21:59:27 +0000
committerTeravus Ovares2009-03-05 21:59:27 +0000
commitac84d3d26b14825fe7bca35013cc00e4d71aeb4f (patch)
treeb2165bd5e242bcf5b5fd821a39058dd9ed748884 /OpenSim/Region/Physics
parent* Add more status information when an oar is being saved (diff)
downloadopensim-SC_OLD-ac84d3d26b14825fe7bca35013cc00e4d71aeb4f.zip
opensim-SC_OLD-ac84d3d26b14825fe7bca35013cc00e4d71aeb4f.tar.gz
opensim-SC_OLD-ac84d3d26b14825fe7bca35013cc00e4d71aeb4f.tar.bz2
opensim-SC_OLD-ac84d3d26b14825fe7bca35013cc00e4d71aeb4f.tar.xz
* Fixing a few mass calculation errors suggested by jhurliman
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs4
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 {