aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
authorUbitUmarov2015-09-02 19:54:53 +0100
committerUbitUmarov2015-09-02 19:54:53 +0100
commita11edceb00b5b86f825bd957bdac9edb91f893dd (patch)
treec192eae26f3aadf365a66f32fc6d9ade2f0a0c61 /OpenSim/Region/Physics
parentbad merge? (diff)
downloadopensim-SC-a11edceb00b5b86f825bd957bdac9edb91f893dd.zip
opensim-SC-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.gz
opensim-SC-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.bz2
opensim-SC-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.xz
seems to compile ( tests comented out)
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs2
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs2
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs5
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsScene.cs22
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODECharacter.cs5
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs15
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdeScene.cs24
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs2
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs4
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs5
10 files changed, 35 insertions, 51 deletions
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs
index ec717d7..e7a39eb 100644
--- a/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs
+++ b/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs
@@ -1288,7 +1288,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1288 } 1288 }
1289 1289
1290 public override Vector3 PIDTarget { set { return; } } 1290 public override Vector3 PIDTarget { set { return; } }
1291 public override bool PIDActive { set { return; } } 1291 public override bool PIDActive { get { return m_pidControllerActive; } set { return; } }
1292 public override float PIDTau { set { return; } } 1292 public override float PIDTau { set { return; } }
1293 1293
1294 public override float PIDHoverHeight { set { return; } } 1294 public override float PIDHoverHeight { set { return; } }
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
index ba24aa7..b283152 100644
--- a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
@@ -748,7 +748,7 @@ namespace OpenSim.Region.Physics.OdePlugin
748 m_log.Warn("[PHYSICS]: Got NaN PIDTarget from Scene on Object"); 748 m_log.Warn("[PHYSICS]: Got NaN PIDTarget from Scene on Object");
749 } 749 }
750 } 750 }
751 public override bool PIDActive { set { m_usePID = value; } } 751 public override bool PIDActive { get { return m_usePID; } set { m_usePID = value; } }
752 public override float PIDTau { set { m_PIDTau = value; } } 752 public override float PIDTau { set { m_PIDTau = value; } }
753 753
754 // For RotLookAt 754 // For RotLookAt
diff --git a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
index 00f5122..00baa21 100644
--- a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
@@ -1667,6 +1667,11 @@ namespace OpenSim.Region.Physics.OdePlugin
1667 1667
1668 #region Add/Remove Entities 1668 #region Add/Remove Entities
1669 1669
1670 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying)
1671 {
1672 return AddAvatar(avName, position, size, isFlying);
1673 }
1674
1670 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying) 1675 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying)
1671 { 1676 {
1672 Vector3 pos; 1677 Vector3 pos;
diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs
index 96ef0a6..eb7e8fc 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs
@@ -152,16 +152,16 @@ namespace OpenSim.Region.Physics.Manager
152 /// <param name="size"></param> 152 /// <param name="size"></param>
153 /// <param name="isFlying"></param> 153 /// <param name="isFlying"></param>
154 /// <returns></returns> 154 /// <returns></returns>
155<<<<<<< HEAD 155
156 public abstract PhysicsActor AddAvatar( 156 public abstract PhysicsActor AddAvatar(
157 string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying); 157 string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying);
158 158
159======= 159
160 public virtual PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying) 160 public virtual PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying)
161 { 161 {
162 return null; 162 return null;
163 } 163 }
164>>>>>>> avn/ubitvar 164
165 /// <summary> 165 /// <summary>
166 /// Add an avatar 166 /// Add an avatar
167 /// </summary> 167 /// </summary>
@@ -177,13 +177,25 @@ namespace OpenSim.Region.Physics.Manager
177 { 177 {
178 PhysicsActor ret = AddAvatar(avName, position, velocity, size, isFlying); 178 PhysicsActor ret = AddAvatar(avName, position, velocity, size, isFlying);
179 179
180 if (ret != null) 180 if (ret != null)
181 ret.LocalID = localID;
182
183 return ret;
184 }
185
186 public virtual PhysicsActor AddAvatar(
187 uint localID, string avName, Vector3 position, Vector3 size, bool isFlying)
188 {
189 PhysicsActor ret = AddAvatar(avName, position, size, isFlying);
190
191 if (ret != null)
181 ret.LocalID = localID; 192 ret.LocalID = localID;
182 193
183 return ret; 194 return ret;
184 } 195 }
185 196
186 public virtual PhysicsActor AddAvatar(uint localID, string avName, Vector3 position, Vector3 size, float feetOffset, bool isFlying) 197 public virtual PhysicsActor AddAvatar(
198 uint localID, string avName, Vector3 position, Vector3 size, float feetOffset, bool isFlying)
187 { 199 {
188 PhysicsActor ret = AddAvatar(localID, avName, position, size, isFlying); 200 PhysicsActor ret = AddAvatar(localID, avName, position, size, isFlying);
189 return ret; 201 return ret;
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
index 9203169..05eaf2a 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
@@ -1251,12 +1251,7 @@ 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; } 1254 get { return false; }
1256=======
1257 // os version
1258 // get { return false; }
1259>>>>>>> avn/ubitvar
1260 set { return; } 1255 set { return; }
1261 } 1256 }
1262 public override float PIDTau { set { return; } } 1257 public override float PIDTau { set { return; } }
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
index 6363422..0a99e30 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
@@ -2955,14 +2955,8 @@ Console.WriteLine(" JointCreateFixed");
2955 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);
2956 } 2956 }
2957 } 2957 }
2958<<<<<<< HEAD
2959 public override bool PIDActive { get; set; }
2960=======
2961 // os version
2962 //public override bool PIDActive {get { return m_usePID; } set { m_usePID = value; } }
2963 public override bool PIDActive { set { m_usePID = value; } }
2964 2958
2965>>>>>>> avn/ubitvar 2959 public override bool PIDActive { get; set; }
2966 public override float PIDTau { set { m_PIDTau = value; } } 2960 public override float PIDTau { set { m_PIDTau = value; } }
2967 2961
2968 public override float PIDHoverHeight { set { m_PIDHoverHeight = value; ; } } 2962 public override float PIDHoverHeight { set { m_PIDHoverHeight = value; ; } }
@@ -3359,14 +3353,7 @@ Console.WriteLine(" JointCreateFixed");
3359 RequestAssetDelegate assetProvider = _parent_scene.RequestAssetMethod; 3353 RequestAssetDelegate assetProvider = _parent_scene.RequestAssetMethod;
3360 if (assetProvider != null) 3354 if (assetProvider != null)
3361 assetProvider(_pbs.SculptTexture, MeshAssetReceived); 3355 assetProvider(_pbs.SculptTexture, MeshAssetReceived);
3362<<<<<<< HEAD
3363 }, null, "ODEPrim.CheckMeshAsset"); 3356 }, null, "ODEPrim.CheckMeshAsset");
3364=======
3365 // os version
3366 //}, null, "ODEPrim.CheckMeshAsset");
3367 // avn
3368 });
3369>>>>>>> avn/ubitvar
3370 } 3357 }
3371 } 3358 }
3372 3359
diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
index 7f4a809..3776ac9 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
@@ -2020,35 +2020,11 @@ 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) 2023 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying)
2025 { 2024 {
2026 OdeCharacter newAv 2025 OdeCharacter newAv
2027 = new OdeCharacter( 2026 = new OdeCharacter(
2028 avName, this, position, velocity, size, avPIDD, avPIDP, 2027 avName, this, position, velocity, size, avPIDD, avPIDP,
2029=======
2030/* core version
2031 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying)
2032 {
2033 OdeCharacter newAv
2034 = new OdeCharacter(
2035 avName, this, position, velocity, size, avPIDD, avPIDP,
2036 avCapRadius, avStandupTensor, avDensity,
2037 avMovementDivisorWalk, avMovementDivisorRun);
2038
2039 newAv.Flying = isFlying;
2040 newAv.MinimumGroundFlightOffset = minimumGroundFlightOffset;
2041 newAv.m_avatarplanted = avplanted;
2042
2043 return newAv;
2044 }
2045*/
2046 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying)
2047 {
2048 OdeCharacter newAv
2049 = new OdeCharacter(
2050 avName, this, position, Vector3.Zero, size, avPIDD, avPIDP,
2051>>>>>>> avn/ubitvar
2052 avCapRadius, avStandupTensor, avDensity, 2028 avCapRadius, avStandupTensor, avDensity,
2053 avMovementDivisorWalk, avMovementDivisorRun); 2029 avMovementDivisorWalk, avMovementDivisorRun);
2054 2030
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs
index 1c38246..0e2cbd2 100644
--- a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs
+++ b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs
@@ -1415,7 +1415,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1415 } 1415 }
1416 1416
1417 public override Vector3 PIDTarget { set { return; } } 1417 public override Vector3 PIDTarget { set { return; } }
1418 public override bool PIDActive { set { return; } } 1418 public override bool PIDActive {get {return m_pidControllerActive;} set { return; } }
1419 public override float PIDTau { set { return; } } 1419 public override float PIDTau { set { return; } }
1420 1420
1421 public override float PIDHoverHeight { set { return; } } 1421 public override float PIDHoverHeight { set { return; } }
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs
index b13f601..8bcdd89 100644
--- a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs
@@ -716,6 +716,10 @@ namespace OpenSim.Region.Physics.OdePlugin
716 716
717 public override bool PIDActive 717 public override bool PIDActive
718 { 718 {
719 get
720 {
721 return m_usePID;
722 }
719 set 723 set
720 { 724 {
721 AddChange(changes.PIDActive,value); 725 AddChange(changes.PIDActive,value);
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
index dafd3a3..26e8e54 100644
--- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
+++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
@@ -1222,6 +1222,11 @@ namespace OpenSim.Region.Physics.OdePlugin
1222 1222
1223 #region Add/Remove Entities 1223 #region Add/Remove Entities
1224 1224
1225 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying)
1226 {
1227 return AddAvatar(avName, position, size, isFlying);
1228 }
1229
1225 public override PhysicsActor AddAvatar(uint localID, string avName, Vector3 position, Vector3 size, float feetOffset, bool isFlying) 1230 public override PhysicsActor AddAvatar(uint localID, string avName, Vector3 position, Vector3 size, float feetOffset, bool isFlying)
1226 { 1231 {
1227 Vector3 pos; 1232 Vector3 pos;