From 98f4a568ad0115b479d4d508a53af81c7c29816f Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 26 Dec 2007 01:06:18 +0000 Subject: * Removed a debug message I left in there * Added a few more comments. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 5874aab..5570136 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -533,7 +533,13 @@ namespace OpenSim.Region.Environment.Scenes } public void StopFlying() { - MainLog.Instance.Verbose("AGENT","VEL:" + Velocity.ToString()); + // It turns out to get the agent to stop flying, you have to feed it stop flying velocities + // and send a full object update. + // There's no message to send the client to tell it to stop flying + + // Add 1/2 the avatar's height to it's position so it doesn't shoot into the air + // when the avatar stands up + AbsolutePosition = AbsolutePosition + new LLVector3(0, 0, (m_avHeight/2)); SendFullUpdateToAllClients(); } -- cgit v1.1