aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/ODEPrim.cs')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs15
1 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
index 218ccda..6363422 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
@@ -114,7 +114,6 @@ namespace OpenSim.Region.Physics.OdePlugin
114 private float m_PIDTau; 114 private float m_PIDTau;
115 private float PID_D = 35f; 115 private float PID_D = 35f;
116 private float PID_G = 25f; 116 private float PID_G = 25f;
117 private bool m_usePID;
118 117
119 // KF: These next 7 params apply to llSetHoverHeight(float height, integer water, float tau), 118 // KF: These next 7 params apply to llSetHoverHeight(float height, integer water, float tau),
120 // and are for non-VEHICLES only. 119 // and are for non-VEHICLES only.
@@ -1731,7 +1730,7 @@ Console.WriteLine(" JointCreateFixed");
1731 // gravityz multiplier = 1 - m_buoyancy 1730 // gravityz multiplier = 1 - m_buoyancy
1732 fz = _parent_scene.gravityz * (1.0f - m_buoyancy) * m_mass; 1731 fz = _parent_scene.gravityz * (1.0f - m_buoyancy) * m_mass;
1733 1732
1734 if (m_usePID) 1733 if (PIDActive)
1735 { 1734 {
1736//Console.WriteLine("PID " + Name); 1735//Console.WriteLine("PID " + Name);
1737 // KF - this is for object move? eg. llSetPos() ? 1736 // KF - this is for object move? eg. llSetPos() ?
@@ -1803,7 +1802,7 @@ Console.WriteLine(" JointCreateFixed");
1803 } // end if (PIDActive) 1802 } // end if (PIDActive)
1804 1803
1805 // Hover PID Controller needs to be mutually exlusive to MoveTo PID controller 1804 // Hover PID Controller needs to be mutually exlusive to MoveTo PID controller
1806 if (m_useHoverPID && !m_usePID) 1805 if (m_useHoverPID && !PIDActive)
1807 { 1806 {
1808//Console.WriteLine("Hover " + Name); 1807//Console.WriteLine("Hover " + Name);
1809 1808
@@ -2875,7 +2874,7 @@ Console.WriteLine(" JointCreateFixed");
2875 // it does make sense to do this for tiny little instabilities with physical prim, however 0.5m/frame is fairly large. 2874 // it does make sense to do this for tiny little instabilities with physical prim, however 0.5m/frame is fairly large.
2876 // reducing this to 0.02m/frame seems to help the angular rubberbanding quite a bit, however, to make sure it doesn't affect elevators and vehicles 2875 // reducing this to 0.02m/frame seems to help the angular rubberbanding quite a bit, however, to make sure it doesn't affect elevators and vehicles
2877 // adding these logical exclusion situations to maintain this where I think it was intended to be. 2876 // adding these logical exclusion situations to maintain this where I think it was intended to be.
2878 if (m_throttleUpdates || m_usePID || (m_vehicle != null && m_vehicle.Type != Vehicle.TYPE_NONE) || (Amotor != IntPtr.Zero)) 2877 if (m_throttleUpdates || PIDActive || (m_vehicle != null && m_vehicle.Type != Vehicle.TYPE_NONE) || (Amotor != IntPtr.Zero))
2879 { 2878 {
2880 m_minvelocity = 0.5f; 2879 m_minvelocity = 0.5f;
2881 } 2880 }
@@ -2956,10 +2955,14 @@ Console.WriteLine(" JointCreateFixed");
2956 m_log.WarnFormat("[PHYSICS]: Got NaN PIDTarget from Scene on Object {0}", Name); 2955 m_log.WarnFormat("[PHYSICS]: Got NaN PIDTarget from Scene on Object {0}", Name);
2957 } 2956 }
2958 } 2957 }
2958<<<<<<< HEAD
2959 public override bool PIDActive { get; set; }
2960=======
2959 // os version 2961 // os version
2960 //public override bool PIDActive {get { return m_usePID; } set { m_usePID = value; } } 2962 //public override bool PIDActive {get { return m_usePID; } set { m_usePID = value; } }
2961 public override bool PIDActive { set { m_usePID = value; } } 2963 public override bool PIDActive { set { m_usePID = value; } }
2962 2964
2965>>>>>>> avn/ubitvar
2963 public override float PIDTau { set { m_PIDTau = value; } } 2966 public override float PIDTau { set { m_PIDTau = value; } }
2964 2967
2965 public override float PIDHoverHeight { set { m_PIDHoverHeight = value; ; } } 2968 public override float PIDHoverHeight { set { m_PIDHoverHeight = value; ; } }
@@ -3356,10 +3359,14 @@ Console.WriteLine(" JointCreateFixed");
3356 RequestAssetDelegate assetProvider = _parent_scene.RequestAssetMethod; 3359 RequestAssetDelegate assetProvider = _parent_scene.RequestAssetMethod;
3357 if (assetProvider != null) 3360 if (assetProvider != null)
3358 assetProvider(_pbs.SculptTexture, MeshAssetReceived); 3361 assetProvider(_pbs.SculptTexture, MeshAssetReceived);
3362<<<<<<< HEAD
3363 }, null, "ODEPrim.CheckMeshAsset");
3364=======
3359 // os version 3365 // os version
3360 //}, null, "ODEPrim.CheckMeshAsset"); 3366 //}, null, "ODEPrim.CheckMeshAsset");
3361 // avn 3367 // avn
3362 }); 3368 });
3369>>>>>>> avn/ubitvar
3363 } 3370 }
3364 } 3371 }
3365 3372