fix a bug i added fixing another....
parent
190e7a4334
commit
26fd1e3a0c
|
@ -753,9 +753,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (m_movementAnimationUpdateCounter >= 2)
|
if (m_movementAnimationUpdateCounter >= 2)
|
||||||
{
|
{
|
||||||
m_movementAnimationUpdateCounter = 0;
|
m_movementAnimationUpdateCounter = 0;
|
||||||
if (Animator != null && ParentID == 0) // skip it if sitting
|
if (Animator != null)
|
||||||
{
|
{
|
||||||
Animator.UpdateMovementAnimations();
|
if(ParentID == 0) // skip it if sitting
|
||||||
|
Animator.UpdateMovementAnimations();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1400,6 +1401,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
// Vector3 posAdjusted = m_pos + HEAD_ADJUSTMENT;
|
// Vector3 posAdjusted = m_pos + HEAD_ADJUSTMENT;
|
||||||
// m_scene.PhysicsScene.RaycastWorld(m_pos, Vector3.Normalize(CameraPosition - posAdjusted), Vector3.Distance(CameraPosition, posAdjusted) + 0.3f, RayCastCameraCallback);
|
// m_scene.PhysicsScene.RaycastWorld(m_pos, Vector3.Normalize(CameraPosition - posAdjusted), Vector3.Distance(CameraPosition, posAdjusted) + 0.3f, RayCastCameraCallback);
|
||||||
|
|
||||||
Vector3 posAdjusted = AbsolutePosition + HEAD_ADJUSTMENT;
|
Vector3 posAdjusted = AbsolutePosition + HEAD_ADJUSTMENT;
|
||||||
Vector3 distTocam = CameraPosition - posAdjusted;
|
Vector3 distTocam = CameraPosition - posAdjusted;
|
||||||
float distTocamlen = distTocam.Length();
|
float distTocamlen = distTocam.Length();
|
||||||
|
@ -1408,6 +1410,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
distTocam *= 1.0f / distTocamlen;
|
distTocam *= 1.0f / distTocamlen;
|
||||||
m_scene.PhysicsScene.RaycastWorld(posAdjusted, distTocam, distTocamlen + 0.3f, RayCastCameraCallback);
|
m_scene.PhysicsScene.RaycastWorld(posAdjusted, distTocam, distTocamlen + 0.3f, RayCastCameraCallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue