aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/PhysicsModules/Ode/ODEPrim.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-11-20 18:25:56 +0000
committerUbitUmarov2015-11-20 18:25:56 +0000
commit25983c1ba9428c5cd8aabb1f81381c60378db9ab (patch)
treee9d866ad0fa9009c4737c2434c73070d7301e5cb /OpenSim/Region/PhysicsModules/Ode/ODEPrim.cs
parentchange ScriptStopStrategy to the default value co-op (mantis 7740 (diff)
downloadopensim-SC-25983c1ba9428c5cd8aabb1f81381c60378db9ab.zip
opensim-SC-25983c1ba9428c5cd8aabb1f81381c60378db9ab.tar.gz
opensim-SC-25983c1ba9428c5cd8aabb1f81381c60378db9ab.tar.bz2
opensim-SC-25983c1ba9428c5cd8aabb1f81381c60378db9ab.tar.xz
remove the hard to maintain Ode.Net wrapper only in use by old ode
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/PhysicsModules/Ode/ODEPrim.cs48
1 files changed, 24 insertions, 24 deletions
diff --git a/OpenSim/Region/PhysicsModules/Ode/ODEPrim.cs b/OpenSim/Region/PhysicsModules/Ode/ODEPrim.cs
index 908b266..82b0999 100644
--- a/OpenSim/Region/PhysicsModules/Ode/ODEPrim.cs
+++ b/OpenSim/Region/PhysicsModules/Ode/ODEPrim.cs
@@ -48,7 +48,6 @@ using System.Runtime.InteropServices;
48using System.Threading; 48using System.Threading;
49using log4net; 49using log4net;
50using OpenMetaverse; 50using OpenMetaverse;
51using Ode.NET;
52using OpenSim.Framework; 51using OpenSim.Framework;
53using OpenSim.Region.PhysicsModules.SharedBase; 52using OpenSim.Region.PhysicsModules.SharedBase;
54 53
@@ -359,12 +358,12 @@ namespace OpenSim.Region.PhysicsModule.ODE
359 if (m_assetFailed) 358 if (m_assetFailed)
360 { 359 {
361 d.GeomSetCategoryBits(prim_geom, 0); 360 d.GeomSetCategoryBits(prim_geom, 0);
362 d.GeomSetCollideBits(prim_geom, BadMeshAssetCollideBits); 361 d.GeomSetCollideBits(prim_geom, (uint)BadMeshAssetCollideBits);
363 } 362 }
364 else 363 else
365 { 364 {
366 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories); 365 d.GeomSetCategoryBits(prim_geom, (uint)m_collisionCategories);
367 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags); 366 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
368 } 367 }
369 368
370 _parent_scene.geom_name_map[prim_geom] = Name; 369 _parent_scene.geom_name_map[prim_geom] = Name;
@@ -432,7 +431,7 @@ namespace OpenSim.Region.PhysicsModule.ODE
432 if (m_assetFailed) 431 if (m_assetFailed)
433 { 432 {
434 d.GeomSetCategoryBits(prim_geom, 0); 433 d.GeomSetCategoryBits(prim_geom, 0);
435 d.GeomSetCollideBits(prim_geom, BadMeshAssetCollideBits); 434 d.GeomSetCollideBits(prim_geom, (uint)BadMeshAssetCollideBits);
436 } 435 }
437 else 436 else
438 { 437 {
@@ -440,8 +439,8 @@ namespace OpenSim.Region.PhysicsModule.ODE
440 m_collisionFlags |= (CollisionCategories.Land | CollisionCategories.Wind); 439 m_collisionFlags |= (CollisionCategories.Land | CollisionCategories.Wind);
441 } 440 }
442 441
443 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories); 442 d.GeomSetCategoryBits(prim_geom, (uint)m_collisionCategories);
444 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags); 443 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
445 444
446 d.BodySetAutoDisableFlag(Body, true); 445 d.BodySetAutoDisableFlag(Body, true);
447 d.BodySetAutoDisableSteps(Body, body_autodisable_frames); 446 d.BodySetAutoDisableSteps(Body, body_autodisable_frames);
@@ -825,8 +824,8 @@ namespace OpenSim.Region.PhysicsModule.ODE
825 } 824 }
826 else 825 else
827 { 826 {
828 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories); 827 d.GeomSetCategoryBits(prim_geom, (uint)m_collisionCategories);
829 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags); 828 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
830 } 829 }
831 830
832 d.BodyDestroy(Body); 831 d.BodyDestroy(Body);
@@ -859,8 +858,8 @@ namespace OpenSim.Region.PhysicsModule.ODE
859 else 858 else
860 { 859 {
861 860
862 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories); 861 d.GeomSetCategoryBits(prim_geom, (uint)m_collisionCategories);
863 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags); 862 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
864 } 863 }
865 864
866 Body = IntPtr.Zero; 865 Body = IntPtr.Zero;
@@ -1151,12 +1150,12 @@ Console.WriteLine("ZProcessTaints for " + Name);
1151 if (prm.m_assetFailed) 1150 if (prm.m_assetFailed)
1152 { 1151 {
1153 d.GeomSetCategoryBits(prm.prim_geom, 0); 1152 d.GeomSetCategoryBits(prm.prim_geom, 0);
1154 d.GeomSetCollideBits(prm.prim_geom, prm.BadMeshAssetCollideBits); 1153 d.GeomSetCollideBits(prm.prim_geom, (uint)prm.BadMeshAssetCollideBits);
1155 } 1154 }
1156 else 1155 else
1157 { 1156 {
1158 d.GeomSetCategoryBits(prm.prim_geom, (int)prm.m_collisionCategories); 1157 d.GeomSetCategoryBits(prm.prim_geom, (uint)prm.m_collisionCategories);
1159 d.GeomSetCollideBits(prm.prim_geom, (int)prm.m_collisionFlags); 1158 d.GeomSetCollideBits(prm.prim_geom, (uint)prm.m_collisionFlags);
1160 } 1159 }
1161 1160
1162 d.Quaternion quat = new d.Quaternion(); 1161 d.Quaternion quat = new d.Quaternion();
@@ -1200,14 +1199,14 @@ Console.WriteLine("ZProcessTaints for " + Name);
1200 if (m_assetFailed) 1199 if (m_assetFailed)
1201 { 1200 {
1202 d.GeomSetCategoryBits(prim_geom, 0); 1201 d.GeomSetCategoryBits(prim_geom, 0);
1203 d.GeomSetCollideBits(prim_geom, BadMeshAssetCollideBits); 1202 d.GeomSetCollideBits(prim_geom, (uint)BadMeshAssetCollideBits);
1204 } 1203 }
1205 else 1204 else
1206 { 1205 {
1207 //Console.WriteLine("GeomSetCategoryBits 2: " + prim_geom + " - " + (int)m_collisionCategories + " for " + Name); 1206 //Console.WriteLine("GeomSetCategoryBits 2: " + prim_geom + " - " + (int)m_collisionCategories + " for " + Name);
1208 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories); 1207 d.GeomSetCategoryBits(prim_geom, (uint)m_collisionCategories);
1209 //Console.WriteLine(" Post GeomSetCategoryBits 2"); 1208 //Console.WriteLine(" Post GeomSetCategoryBits 2");
1210 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags); 1209 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
1211 } 1210 }
1212 1211
1213 d.Quaternion quat2 = new d.Quaternion(); 1212 d.Quaternion quat2 = new d.Quaternion();
@@ -1377,8 +1376,8 @@ Console.WriteLine("ZProcessTaints for " + Name);
1377 } 1376 }
1378 else 1377 else
1379 { 1378 {
1380 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories); 1379 d.GeomSetCategoryBits(prim_geom, (uint)m_collisionCategories);
1381 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags); 1380 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
1382 } 1381 }
1383 1382
1384 if (IsPhysical) 1383 if (IsPhysical)
@@ -1403,12 +1402,12 @@ Console.WriteLine("ZProcessTaints for " + Name);
1403 if (m_assetFailed) 1402 if (m_assetFailed)
1404 { 1403 {
1405 d.GeomSetCategoryBits(prim_geom, 0); 1404 d.GeomSetCategoryBits(prim_geom, 0);
1406 d.GeomSetCollideBits(prim_geom, BadMeshAssetCollideBits); 1405 d.GeomSetCollideBits(prim_geom, (uint)BadMeshAssetCollideBits);
1407 } 1406 }
1408 else 1407 else
1409 { 1408 {
1410 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories); 1409 d.GeomSetCategoryBits(prim_geom, (uint)m_collisionCategories);
1411 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags); 1410 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
1412 } 1411 }
1413 1412
1414 if (IsPhysical) 1413 if (IsPhysical)
@@ -2135,10 +2134,10 @@ Console.WriteLine(" JointCreateFixed");
2135 } 2134 }
2136 2135
2137 if (m_assetFailed) 2136 if (m_assetFailed)
2138 d.GeomSetCollideBits(prim_geom, BadMeshAssetCollideBits); 2137 d.GeomSetCollideBits(prim_geom, (uint)BadMeshAssetCollideBits);
2139 else 2138 else
2140 2139
2141 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags); 2140 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
2142 } 2141 }
2143 /// <summary> 2142 /// <summary>
2144 /// Change prim in response to a shape taint. 2143 /// Change prim in response to a shape taint.
@@ -2813,6 +2812,7 @@ Console.WriteLine(" JointCreateFixed");
2813 d.BodySetLinearVel(Body, 0, 0, 0); 2812 d.BodySetLinearVel(Body, 0, 0, 0);
2814 disableBodySoft(); 2813 disableBodySoft();
2815 2814
2815 _position = l_position;
2816 // tell framework to fix it 2816 // tell framework to fix it
2817 if (_parent == null) 2817 if (_parent == null)
2818 base.RequestPhysicsterseUpdate(); 2818 base.RequestPhysicsterseUpdate();