aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-02-14 01:57:19 +0000
committerTeravus Ovares2008-02-14 01:57:19 +0000
commite3a711536b4c2dad76184747faa0118942368400 (patch)
tree05ef7d92f8fea78a6bb93ee60a83e4e2d1eb8f52 /OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
parentAdded a small but maybe important clue that UserServer is not running. (diff)
downloadopensim-SC-e3a711536b4c2dad76184747faa0118942368400.zip
opensim-SC-e3a711536b4c2dad76184747faa0118942368400.tar.gz
opensim-SC-e3a711536b4c2dad76184747faa0118942368400.tar.bz2
opensim-SC-e3a711536b4c2dad76184747faa0118942368400.tar.xz
* ODE - This fixes a few things and breaks a few more.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs22
1 files changed, 15 insertions, 7 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
index bf54b02..12da6a7 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
@@ -92,7 +92,7 @@ namespace OpenSim.Region.Physics.OdePlugin
92 92
93 private int debugcounter = 0; 93 private int debugcounter = 0;
94 94
95 public OdePrim(String primName, OdeScene parent_scene, IntPtr targetSpace, PhysicsVector pos, PhysicsVector size, 95 public OdePrim(String primName, OdeScene parent_scene, PhysicsVector pos, PhysicsVector size,
96 Quaternion rotation, IMesh mesh, PrimitiveBaseShape pbs, bool pisPhysical, CollisionLocker dode) 96 Quaternion rotation, IMesh mesh, PrimitiveBaseShape pbs, bool pisPhysical, CollisionLocker dode)
97 { 97 {
98 ode = dode; 98 ode = dode;
@@ -126,7 +126,7 @@ namespace OpenSim.Region.Physics.OdePlugin
126 _pbs = pbs; 126 _pbs = pbs;
127 127
128 _parent_scene = parent_scene; 128 _parent_scene = parent_scene;
129 m_targetSpace = targetSpace; 129 m_targetSpace = (IntPtr)0;
130 130
131 if (pos.Z < 0) 131 if (pos.Z < 0)
132 m_isphysical = false; 132 m_isphysical = false;
@@ -433,6 +433,14 @@ namespace OpenSim.Region.Physics.OdePlugin
433 } 433 }
434 public void changeadd(float timestep) 434 public void changeadd(float timestep)
435 { 435 {
436 int[] iprimspaceArrItem = _parent_scene.calculateSpaceArrayItemFromPos(_position);
437 IntPtr targetspace = _parent_scene.calculateSpaceForGeom(_position);
438
439 if (targetspace == IntPtr.Zero)
440 targetspace = _parent_scene.createprimspace(iprimspaceArrItem[0], iprimspaceArrItem[1]);
441
442 m_targetSpace = targetspace;
443
436 if (_mesh != null) 444 if (_mesh != null)
437 { 445 {
438 } 446 }
@@ -630,11 +638,11 @@ namespace OpenSim.Region.Physics.OdePlugin
630 638
631 public void changesize(float timestamp) 639 public void changesize(float timestamp)
632 { 640 {
633 if (!_parent_scene.geom_name_map.ContainsKey(prim_geom)) 641 //if (!_parent_scene.geom_name_map.ContainsKey(prim_geom))
634 { 642 //{
635 m_taintsize = _size; 643 // m_taintsize = _size;
636 return; 644 //return;
637 } 645 //}
638 string oldname = _parent_scene.geom_name_map[prim_geom]; 646 string oldname = _parent_scene.geom_name_map[prim_geom];
639 647
640 648