摘要: floatspeedFactor=Mathf.Clamp01(target.root.rigidbody.velocity.magnitude/70.0f); //Debug.Log(speedFactor);//根据物体的速度变化产生的系数,速度越大,系数越大 camera.fieldOfView=Mathf.Lerp(55,72,speedFactor); floatcurrentDistance=Mathf.Lerp(7.5f,6.5f,speedFactor); currentVelocity=currentVelocity.normalized; Vector3newTargetPo 阅读全文
posted @ 2013-08-08 14:57 顺手 阅读(197) 评论(0) 推荐(0) 编辑