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.......tourmaline
parent
8b8f62f019
commit
b43f0801eb
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue