use Vector3.normalize in place of util.GetNormalize
parent
c7e3e59953
commit
bf269c871a
|
@ -530,11 +530,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
Vector3 a = new Vector3(CameraAtAxis.X, CameraAtAxis.Y, 0);
|
Vector3 a = new Vector3(CameraAtAxis.X, CameraAtAxis.Y, 0);
|
||||||
|
a.Normalize();
|
||||||
if (a == Vector3.Zero)
|
|
||||||
return a;
|
return a;
|
||||||
|
|
||||||
return Util.GetNormalizedVector(a);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -1796,7 +1793,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
look = Velocity;
|
look = Velocity;
|
||||||
look.Z = 0;
|
look.Z = 0;
|
||||||
look = Util.GetNormalizedVector(look);
|
look.Normalize();
|
||||||
if ((Math.Abs(look.X) < 0.01) && (Math.Abs(look.Y) < 0.01) )
|
if ((Math.Abs(look.X) < 0.01) && (Math.Abs(look.Y) < 0.01) )
|
||||||
look = new Vector3(0.99f, 0.042f, 0);
|
look = new Vector3(0.99f, 0.042f, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue