diff options
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 15 | ||||
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdeScene.cs | 8 |
3 files changed, 23 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index 43bef3c..9203169 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | |||
@@ -1251,8 +1251,12 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1251 | public override Vector3 PIDTarget { set { return; } } | 1251 | public override Vector3 PIDTarget { set { return; } } |
1252 | public override bool PIDActive | 1252 | public override bool PIDActive |
1253 | { | 1253 | { |
1254 | <<<<<<< HEAD | ||
1255 | get { return false; } | ||
1256 | ======= | ||
1254 | // os version | 1257 | // os version |
1255 | // get { return false; } | 1258 | // get { return false; } |
1259 | >>>>>>> avn/ubitvar | ||
1256 | set { return; } | 1260 | set { return; } |
1257 | } | 1261 | } |
1258 | public override float PIDTau { set { return; } } | 1262 | public override float PIDTau { set { return; } } |
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 | ||
diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs index 820e649..7f4a809 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs | |||
@@ -2020,6 +2020,13 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2020 | 2020 | ||
2021 | #region Add/Remove Entities | 2021 | #region Add/Remove Entities |
2022 | 2022 | ||
2023 | <<<<<<< HEAD | ||
2024 | public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying) | ||
2025 | { | ||
2026 | OdeCharacter newAv | ||
2027 | = new OdeCharacter( | ||
2028 | avName, this, position, velocity, size, avPIDD, avPIDP, | ||
2029 | ======= | ||
2023 | /* core version | 2030 | /* core version |
2024 | public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying) | 2031 | public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying) |
2025 | { | 2032 | { |
@@ -2041,6 +2048,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2041 | OdeCharacter newAv | 2048 | OdeCharacter newAv |
2042 | = new OdeCharacter( | 2049 | = new OdeCharacter( |
2043 | avName, this, position, Vector3.Zero, size, avPIDD, avPIDP, | 2050 | avName, this, position, Vector3.Zero, size, avPIDD, avPIDP, |
2051 | >>>>>>> avn/ubitvar | ||
2044 | avCapRadius, avStandupTensor, avDensity, | 2052 | avCapRadius, avStandupTensor, avDensity, |
2045 | avMovementDivisorWalk, avMovementDivisorRun); | 2053 | avMovementDivisorWalk, avMovementDivisorRun); |
2046 | 2054 | ||