mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Add copyright headers. Minor formatting cleanup. Fix some compiler warnings. Fix some m_log declarations.
This commit is contained in:
@@ -837,7 +837,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
d.Vector3 pos = d.BodyGetPosition(Body);
|
||||
float ground_height = _parent_scene.GetTerrainHeightAtXY(pos.X, pos.Y);
|
||||
float target_altitude = ground_height + 3.0f; // This is the min fly height
|
||||
if(pos.Z < target_altitude)
|
||||
if (pos.Z < target_altitude)
|
||||
{
|
||||
vec.Z += (target_altitude - pos.Z) * PID_P * 5.0f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user