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