aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-10-17 21:56:15 +0100
committerUbitUmarov2015-10-17 21:56:15 +0100
commit24435cfe9ace3a23ec8590d14dd8454258c0e568 (patch)
tree03f90eb7e2fac74287ecc140eedb9a8a26a1b89e /OpenSim/Region/PhysicsModules/Ode/OdeScene.cs
parentfix GetTerrainHeightAtXY for large regions. Also change ode dispose() (diff)
downloadopensim-SC-24435cfe9ace3a23ec8590d14dd8454258c0e568.zip
opensim-SC-24435cfe9ace3a23ec8590d14dd8454258c0e568.tar.gz
opensim-SC-24435cfe9ace3a23ec8590d14dd8454258c0e568.tar.bz2
opensim-SC-24435cfe9ace3a23ec8590d14dd8454258c0e568.tar.xz
Fix wrong active angularlock detection (it was only burning cpu), stop trying to add a amotor to each child prim and stop using unnecessary trimeshcallbacks
Diffstat (limited to 'OpenSim/Region/PhysicsModules/Ode/OdeScene.cs')
-rw-r--r--OpenSim/Region/PhysicsModules/Ode/OdeScene.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs
index f245a3b..62988d0 100644
--- a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs
+++ b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs
@@ -580,8 +580,8 @@ namespace OpenSim.Region.PhysicsModule.ODE
580 m_suportCombine = false; 580 m_suportCombine = false;
581 581
582 nearCallback = near; 582 nearCallback = near;
583 triCallback = TriCallback; 583// triCallback = TriCallback;
584 triArrayCallback = TriArrayCallback; 584// triArrayCallback = TriArrayCallback;
585 m_rayCastManager = new ODERayCastRequestManager(this); 585 m_rayCastManager = new ODERayCastRequestManager(this);
586 586
587 // Create the world and the first space 587 // Create the world and the first space
@@ -1811,10 +1811,10 @@ namespace OpenSim.Region.PhysicsModule.ODE
1811 //} 1811 //}
1812 // } 1812 // }
1813 } 1813 }
1814 1814/*
1815 private int TriArrayCallback(IntPtr trimesh, IntPtr refObject, int[] triangleIndex, int triCount) 1815 private int TriArrayCallback(IntPtr trimesh, IntPtr refObject, int[] triangleIndex, int triCount)
1816 { 1816 {
1817 /* String name1 = null; 1817 String name1 = null;
1818 String name2 = null; 1818 String name2 = null;
1819 1819
1820 if (!geom_name_map.TryGetValue(trimesh, out name1)) 1820 if (!geom_name_map.TryGetValue(trimesh, out name1))
@@ -1827,7 +1827,7 @@ namespace OpenSim.Region.PhysicsModule.ODE
1827 } 1827 }
1828 1828
1829 m_log.InfoFormat("TriArrayCallback: A collision was detected between {1} and {2}", 0, name1, name2); 1829 m_log.InfoFormat("TriArrayCallback: A collision was detected between {1} and {2}", 0, name1, name2);
1830 */ 1830
1831 return 1; 1831 return 1;
1832 } 1832 }
1833 1833
@@ -1857,7 +1857,7 @@ namespace OpenSim.Region.PhysicsModule.ODE
1857 1857
1858 return 1; 1858 return 1;
1859 } 1859 }
1860 1860*/
1861 /// <summary> 1861 /// <summary>
1862 /// This is our collision testing routine in ODE 1862 /// This is our collision testing routine in ODE
1863 /// </summary> 1863 /// </summary>
@@ -1988,8 +1988,8 @@ namespace OpenSim.Region.PhysicsModule.ODE
1988 1988
1989 x = x - offsetX + 1f; 1989 x = x - offsetX + 1f;
1990 y = y - offsetY + 1f; 1990 y = y - offsetY + 1f;
1991 // map is rotated
1992 1991
1992 // map is rotated
1993 index = (int)x * ((int)m_regionHeight + 3) + (int)y; 1993 index = (int)x * ((int)m_regionHeight + 3) + (int)y;
1994 1994
1995 if (index < TerrainHeightFieldHeights[heightFieldGeom].Length) 1995 if (index < TerrainHeightFieldHeights[heightFieldGeom].Length)