var PlayerRotation = Quaternion.LookRotation( Vector3(LookAtTankEnemy().transform.position.x,PlayerTank.transform.position.y,LookAtTankEnemy().transform.position.z)-PlayerTank.transform.position,Vector3.up); PlayerTank.transform.rotation=Quaternion.Slerp(PlayerTank.transform.rotation,PlayerRotation,Time.deltaTime*2.0); 复制代码
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )
GMT+8, 2024-12-24 02:40 , Processed in 0.139795 second(s), 25 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.