mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Stop the avatar stalling on its first boarder cross when using the ODE plugin
When upgrading the previously child agent to a root, the code was setting the Size parameter on the ODECharacter PhysicsActor. This in turn reset Velocity, which cause the border stall. I'm fixing this by commenting out the Velocity = Vector3.Zero lines since they don't appear to play a useful purpose
This commit is contained in:
@@ -469,6 +469,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (actor != null)
|
||||
{
|
||||
m_pos = actor.Position;
|
||||
|
||||
// m_log.DebugFormat(
|
||||
// "[SCENE PRESENCE]: Set position {0} for {1} in {2} via getting AbsolutePosition!",
|
||||
// m_pos, Name, Scene.RegionInfo.RegionName);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -544,8 +548,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
PhysicsActor actor = m_physicsActor;
|
||||
if (actor != null)
|
||||
{
|
||||
m_velocity = actor.Velocity;
|
||||
|
||||
// m_log.DebugFormat(
|
||||
// "[SCENE PRESENCE]: Set velocity {0} for {1} in {2} via getting Velocity!",
|
||||
// m_velocity, Name, Scene.RegionInfo.RegionName);
|
||||
}
|
||||
|
||||
return m_velocity;
|
||||
}
|
||||
set
|
||||
|
||||
Reference in New Issue
Block a user