mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
* Fixed Cylinder mass formula using diameter instead of radius.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user