Unity中SmoothDamp 平滑阻尼--相机跟随角色移动的示例
Unity中使用Vector3.SmoothDamp(平滑阻尼)方法进行跟随移动,可以使跟随看起来很平滑,而不显得突兀,最典型的示例就是相机平滑跟随角色移动。static function SmoothDamp (current : Vector3, target : Vector3, ref currentVelocity : Vector3, smoothTime : float,
原创
2017-12-12 17:38:20 ·
13486 阅读 ·
0 评论