* Fixed Cylinder mass formula using diameter instead of radius.

0.6.0-stable
Teravus Ovares 2008-02-29 06:55:31 +00:00
parent fe1f15f4ec
commit fa7322eac9
1 changed files with 2 additions and 2 deletions

View File

@ -357,8 +357,8 @@ namespace OpenSim.Region.Physics.OdePlugin
if (_pbs.PathCurve == (byte)Extrusion.Straight)
{
// Cylinder
float volume1 = (float)(Math.PI * Math.Pow(_size.X, 2) * _size.Z);
float volume2 = (float)(Math.PI * Math.Pow(_size.Y, 2) * _size.Z);
float volume1 = (float)(Math.PI * Math.Pow(_size.X/2, 2) * _size.Z);
float volume2 = (float)(Math.PI * Math.Pow(_size.Y/2, 2) * _size.Z);
// Approximating the cylinder's irregularity.
if (volume1 > volume2)