diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSScene.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/Tests/HullCreation.cs | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs index 238fcc2..f8e8f57 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs | |||
@@ -953,8 +953,10 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters | |||
953 | float pathShearY = pbs.PathShearY < 128 ? (float)pbs.PathShearY * 0.01f : (float)(pbs.PathShearY - 256) * 0.01f; | 953 | float pathShearY = pbs.PathShearY < 128 ? (float)pbs.PathShearY * 0.01f : (float)(pbs.PathShearY - 256) * 0.01f; |
954 | float pathBegin = (float)pbs.PathBegin * 2.0e-5f; | 954 | float pathBegin = (float)pbs.PathBegin * 2.0e-5f; |
955 | float pathEnd = 1.0f - (float)pbs.PathEnd * 2.0e-5f; | 955 | float pathEnd = 1.0f - (float)pbs.PathEnd * 2.0e-5f; |
956 | float pathScaleX = (float)(pbs.PathScaleX - 100) * 0.01f; | 956 | float pathScaleX = (float)(200 - pbs.PathScaleX) * 0.01f; |
957 | float pathScaleY = (float)(pbs.PathScaleY - 100) * 0.01f; | 957 | float pathScaleY = (float)(200 - pbs.PathScaleY) * 0.01f; |
958 | float pathTaperX = pbs.PathTaperX * 0.01f; | ||
959 | float pathTaperY = pbs.PathTaperY * 0.01f; | ||
958 | 960 | ||
959 | float profileBegin = (float)pbs.ProfileBegin * 2.0e-5f; | 961 | float profileBegin = (float)pbs.ProfileBegin * 2.0e-5f; |
960 | float profileEnd = 1.0f - (float)pbs.ProfileEnd * 2.0e-5f; | 962 | float profileEnd = 1.0f - (float)pbs.ProfileEnd * 2.0e-5f; |
diff --git a/OpenSim/Region/Physics/BulletSPlugin/Tests/HullCreation.cs b/OpenSim/Region/Physics/BulletSPlugin/Tests/HullCreation.cs index 4bec062..ed7ff9b 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/Tests/HullCreation.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/Tests/HullCreation.cs | |||
@@ -135,6 +135,8 @@ public class HullCreation : OpenSimTestCase | |||
135 | pbs = PrimitiveBaseShape.CreateSphere(); | 135 | pbs = PrimitiveBaseShape.CreateSphere(); |
136 | pbs.ProfileShape = (byte)ProfileShape.Circle; | 136 | pbs.ProfileShape = (byte)ProfileShape.Circle; |
137 | pbs.PathCurve = (byte)Extrusion.Curve1; | 137 | pbs.PathCurve = (byte)Extrusion.Curve1; |
138 | pbs.PathScaleX = 100; // default hollow info as set in the viewer | ||
139 | pbs.PathScaleY = 25; | ||
138 | pos = new Vector3(120.0f, 120.0f, 0f); | 140 | pos = new Vector3(120.0f, 120.0f, 0f); |
139 | pos.Z = PhysicsScene.TerrainManager.GetTerrainHeightAtXYZ(pos) + 10f; | 141 | pos.Z = PhysicsScene.TerrainManager.GetTerrainHeightAtXYZ(pos) + 10f; |
140 | ObjectInitPosition = pos; | 142 | ObjectInitPosition = pos; |