diff options
author | Teravus Ovares | 2008-02-29 06:55:31 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-29 06:55:31 +0000 |
commit | fa7322eac992a3585e97c63cb6ba35c85f4c847b (patch) | |
tree | 14126098f10edf48f09d7b2b6766b530a2f0fa93 | |
parent | * killed a 'new mass' debug line. (diff) | |
download | opensim-SC-fa7322eac992a3585e97c63cb6ba35c85f4c847b.zip opensim-SC-fa7322eac992a3585e97c63cb6ba35c85f4c847b.tar.gz opensim-SC-fa7322eac992a3585e97c63cb6ba35c85f4c847b.tar.bz2 opensim-SC-fa7322eac992a3585e97c63cb6ba35c85f4c847b.tar.xz |
* Fixed Cylinder mass formula using diameter instead of radius.
-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 3c47e27..34c5cfd 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -357,8 +357,8 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
357 | if (_pbs.PathCurve == (byte)Extrusion.Straight) | 357 | if (_pbs.PathCurve == (byte)Extrusion.Straight) |
358 | { | 358 | { |
359 | // Cylinder | 359 | // Cylinder |
360 | float volume1 = (float)(Math.PI * Math.Pow(_size.X, 2) * _size.Z); | 360 | float volume1 = (float)(Math.PI * Math.Pow(_size.X/2, 2) * _size.Z); |
361 | float volume2 = (float)(Math.PI * Math.Pow(_size.Y, 2) * _size.Z); | 361 | float volume2 = (float)(Math.PI * Math.Pow(_size.Y/2, 2) * _size.Z); |
362 | 362 | ||
363 | // Approximating the cylinder's irregularity. | 363 | // Approximating the cylinder's irregularity. |
364 | if (volume1 > volume2) | 364 | if (volume1 > volume2) |