I think 1.0f makes a better offset than 1.2f for basic physics (less floating,

not too much crouching).  I think that we'll have to rethink what the
terrain resolution is down the road, as we don't really have enough sample
data to actually get people placed right on the land.
afrisby
Sean Dague 2007-09-12 10:56:04 +00:00
parent 26a67d998c
commit 26eebf6b32
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin
actor.Position.X = 255.9F;
}
float height = _heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X] + 1.2f;
float height = _heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X] + 1.0f;
if (actor.Flying)
{
if (actor.Position.Z + (actor.Velocity.Z * timeStep) < _heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X] + 2)