From b43f0801eba5925787f3384bfe510e33e330f724 Mon Sep 17 00:00:00 2001 From: gareth Date: Tue, 27 Mar 2007 03:22:40 +0000 Subject: Heightfield needs fixing, or i'll re-implement it (probably actually the collisions stuff i'm not doing right) Why am I using SVN logs to talk? It's bedtime....... --- OpenSim.Physics/OdePlugin/OdePlugin.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim.Physics/OdePlugin/OdePlugin.cs') diff --git a/OpenSim.Physics/OdePlugin/OdePlugin.cs b/OpenSim.Physics/OdePlugin/OdePlugin.cs index 01eaf77..8e34a6b 100644 --- a/OpenSim.Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim.Physics/OdePlugin/OdePlugin.cs @@ -140,6 +140,7 @@ namespace OpenSim.Physics.OdePlugin } d.SpaceCollide(space, IntPtr.Zero, nearCallback); d.WorldQuickStep(world, timeStep*5f); + d.JointGroupEmpty(contactgroup); foreach (OdeCharacter actor in _characters) { actor.UpdatePosition(); @@ -167,8 +168,7 @@ namespace OpenSim.Physics.OdePlugin } IntPtr HeightmapData = d.GeomHeightfieldDataCreate(); d.GeomHeightfieldDataBuildDouble(HeightmapData,_heightmap,1,256,256,256,256,1.0f,0.0f,2.0f,0); - LandGeom=d.CreateHeightfield(space, HeightmapData, 1); - d.GeomSetPosition(LandGeom,0,0,0); + LandGeom=d.CreateHeightfield(space, HeightmapData, 0); } } -- cgit v1.1