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-11-22 19:39 , Processed in 0.093574 second(s), 25 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.