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