From e3a711536b4c2dad76184747faa0118942368400 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 14 Feb 2008 01:57:19 +0000 Subject: * ODE - This fixes a few things and breaks a few more. --- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'OpenSim/Region/Physics/OdePlugin/OdePlugin.cs') diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 50687ed..f934341 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -1033,16 +1033,11 @@ namespace OpenSim.Region.Physics.OdePlugin rot.z = rotation.z; - int[] iprimspaceArrItem = calculateSpaceArrayItemFromPos(pos); - IntPtr targetspace = calculateSpaceForGeom(pos); - - if (targetspace == IntPtr.Zero) - targetspace = createprimspace(iprimspaceArrItem[0], iprimspaceArrItem[1]); - + OdePrim newPrim; lock (OdeLock) { - newPrim = new OdePrim(name, this, targetspace, pos, siz, rot, mesh, pbs, isphysical, ode); + newPrim = new OdePrim(name, this, pos, siz, rot, mesh, pbs, isphysical, ode); _prims.Add(newPrim); } @@ -1244,18 +1239,8 @@ namespace OpenSim.Region.Physics.OdePlugin collision_optimized(timeStep); - - + d.WorldQuickStep(world, ODE_STEPSIZE); - - try - { - d.WorldQuickStep(world, ODE_STEPSIZE); - } - catch (StackOverflowException) - { - d.WorldQuickStep(world, 0.001f); - } d.JointGroupEmpty(contactgroup); ode.dunlock(world); -- cgit v1.1