public void Update(SimTime t) { if (_lookAtAnim != null) { if (_lookAtAnim.Update(t)) { LookAt = _lookAtAnim.Value; LookAt3d = LookAt.ToPositionAboveSeaLeveld(0); Dirty = true; } else { _lookAtAnim = null; } } if (_posAnim != null) { if (_posAnim.Update(t)) { Pos3d = _posAnim.Value; Dirty = true; } else { _posAnim = null; } } }
public void SetLookAt(ILocatable lookAt, bool animated) { if (animated) { _lookAtAnim = new LocLinAnim(2, LookAt, lookAt); var oldLocPos = LookAt.ToPositionAboveSeaLeveld(_altitude); _posAnim = new VectorLinAnim(5, Pos3d, oldLocPos); } else { LookAt = new Location(lookAt); LookAt3d = LookAt.ToPositionAboveSeaLeveld(0); Dirty = true; } }
public void Update(SimTime t) { if (_lookAtAnim != null) { if (_lookAtAnim.Update (t)) { LookAt = _lookAtAnim.Value; LookAt3d = LookAt.ToPositionAboveSeaLeveld (0); Dirty = true; } else { _lookAtAnim = null; } } if (_posAnim != null) { if (_posAnim.Update (t)) { Pos3d = _posAnim.Value; Dirty = true; } else { _posAnim = null; } } }
public void SetLookAt(ILocatable lookAt, bool animated) { if (animated) { _lookAtAnim = new LocLinAnim(2, LookAt, lookAt); var oldLocPos = LookAt.ToPositionAboveSeaLeveld(_altitude); _posAnim = new VectorLinAnim(5, Pos3d, oldLocPos); } else { LookAt = new Location(lookAt); LookAt3d = LookAt.ToPositionAboveSeaLeveld (0); Dirty = true; } }