itest
parent
1c735facee
commit
fedc9eb105
|
@ -1105,11 +1105,11 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
AbsolutePosition = newpos;
|
||||
|
||||
|
||||
m_log.DebugFormat("[avnLocalTeleport] {0} {1}", newpos, rotateToVelXY);
|
||||
m_log.DebugFormat("[avnLocalTeleport] to {0} {1} init rotation {3}", newpos, rotateToVelXY,Rotation);
|
||||
|
||||
if (newvel.HasValue)
|
||||
{
|
||||
if (newvel == Vector3.Zero)
|
||||
if ((Vector3)newvel == Vector3.Zero)
|
||||
{
|
||||
if (PhysicsActor != null)
|
||||
PhysicsActor.SetMomentum(Vector3.Zero);
|
||||
|
@ -1126,6 +1126,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
y = (float)Math.Cos(x);
|
||||
x = (float)Math.Sin(x);
|
||||
Rotation = new Quaternion(0f, 0f, x, y);
|
||||
m_log.DebugFormat("[avnLocalTeleport] final rotation {0}", Rotation);
|
||||
}
|
||||
|
||||
if (PhysicsActor != null)
|
||||
|
|
|
@ -1244,8 +1244,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
if (Body != IntPtr.Zero)
|
||||
d.BodySetPosition(Body, newPos.X, newPos.Y, newPos.Z);
|
||||
_position = newPos;
|
||||
m_pidControllerActive = true;
|
||||
m_log.DebugFormat("[ode character new position] {0}", newPos);
|
||||
m_pidControllerActive = true;
|
||||
}
|
||||
|
||||
private void changeOrientation(Quaternion newOri)
|
||||
|
|
Loading…
Reference in New Issue