* Fixing a few mass calculation errors suggested by jhurliman

0.6.4-rc1
Teravus Ovares 2009-03-05 21:59:27 +00:00
parent ff7b20bef1
commit ac84d3d26b
1 changed files with 2 additions and 2 deletions

View File

@ -480,12 +480,12 @@ namespace OpenSim.Region.Physics.OdePlugin
case ProfileShape.HalfCircle:
if (_pbs.PathCurve == (byte)Extrusion.Curve1)
{
if (_size.X == _size.Z && _size.Z == _size.X)
if (_size.X == _size.Y && _size.Y == _size.Z)
{
// regular sphere
// v = 4/3 * pi * r^3
float sradius3 = (float)Math.Pow((_size.X / 2), 3);
volume = (float)((4 / 3) * Math.PI * sradius3);
volume = (float)((4f / 3f) * Math.PI * sradius3);
}
else
{