mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
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.......
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user