* Fixed Cylinder mass formula using diameter instead of radius.
parent
fe1f15f4ec
commit
fa7322eac9
|
@ -357,8 +357,8 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
if (_pbs.PathCurve == (byte)Extrusion.Straight)
|
if (_pbs.PathCurve == (byte)Extrusion.Straight)
|
||||||
{
|
{
|
||||||
// Cylinder
|
// Cylinder
|
||||||
float volume1 = (float)(Math.PI * Math.Pow(_size.X, 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) * _size.Z);
|
float volume2 = (float)(Math.PI * Math.Pow(_size.Y/2, 2) * _size.Z);
|
||||||
|
|
||||||
// Approximating the cylinder's irregularity.
|
// Approximating the cylinder's irregularity.
|
||||||
if (volume1 > volume2)
|
if (volume1 > volume2)
|
||||||
|
|
Loading…
Reference in New Issue