mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +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;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) Contributors, http://opensimulator.org/
|
||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||
@@ -10,7 +9,7 @@
|
||||
* * Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* * Neither the name of the OpenSim Project nor the
|
||||
* * Neither the name of the OpenSimulator Project nor the
|
||||
* names of its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
@@ -25,6 +24,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
//#define USE_DRAWSTUFF
|
||||
|
||||
using System;
|
||||
|
||||
Reference in New Issue
Block a user