一:简单介绍
把要移动的对象放在此处
1 设置很多的路径点,每次经过的X点都可以获取到,看打印面板的显示
2调整路径的弯曲程度,如拉平或者更弯曲
3此路径点处target=camera为相机的FOV视角大小
4此路径点到下一路径点处的运动速度
5此路径点延迟N秒后运动
6整条路径的运动曲径,如正弦、线性等
7事件调度
8在该路径点的旋转角度,可调节,也可以LookAt某个对象
9全局设置
10整条路径的曲线类型,Bezier曲线还是很好用的,取各点的切线值
二:事件调度
PathCameraAnimator:
//Events
public delegate void AnimationStartedEventHandler();
public delegate void AnimationPausedEventHandler();
public delegate void AnimationStoppedEventHandler();
public delegate void AnimationFinishedEventHandler();
public delegate void AnimationLoopedEventHandler();
public delegate void AnimationPingPongEventHandler();
public delegate void AnimationPointReachedEventHandler();
public delegate void AnimationCustomEventHandler(string eventName);
public delegate void AnimationPointReachedWithNumberEventHandler(int pointNumber);
/// <summary>
/// Broadcast when the Animation has begun
/// </summary>
public event AnimationStartedEventHandler AnimationStartedEvent;
/// <summary>
/// Broadcast when the animation is paused
/// </summary>
public event AnimationPausedEventHandler AnimationPausedEvent;
/// <summary>
/// Broadcast when the animation is stopped
/// </summary>
public event AnimationStoppedEventHandler AnimationStoppedEvent;
/// <summary&