mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Merge branch 'avination' into careminster
This commit is contained in:
@@ -168,6 +168,10 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
m_density = density;
|
||||
m_mass = 80f; // sure we have a default
|
||||
|
||||
// force lower density for testing
|
||||
m_density = 3.0f;
|
||||
|
||||
|
||||
mu = parent_scene.AvatarFriction;
|
||||
|
||||
walkDivisor = walk_divisor;
|
||||
@@ -1184,7 +1188,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
// destroy avatar capsule and related ODE data
|
||||
AvatarGeomAndBodyDestroy();
|
||||
}
|
||||
|
||||
m_freemove = false;
|
||||
m_isPhysical = NewStatus;
|
||||
}
|
||||
}
|
||||
@@ -1236,7 +1240,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
+ (Amotor == IntPtr.Zero ? "Amotor " : ""));
|
||||
}
|
||||
}
|
||||
|
||||
m_freemove = false;
|
||||
m_pidControllerActive = true;
|
||||
}
|
||||
else
|
||||
@@ -1250,6 +1254,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
if (Body != IntPtr.Zero)
|
||||
d.BodySetPosition(Body, newPos.X, newPos.Y, newPos.Z);
|
||||
_position = newPos;
|
||||
m_freemove = false;
|
||||
m_pidControllerActive = true;
|
||||
}
|
||||
|
||||
@@ -1260,6 +1265,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
private void changeVelocity(Vector3 newVel)
|
||||
{
|
||||
m_pidControllerActive = true;
|
||||
m_freemove = false;
|
||||
_target_velocity = newVel;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user