[英]UNITY3D: How do I Set NavMesh Agent Walking Speed to 0 but keep him rotatin towards the player
-My question is how to stop the zombie from waking towards the player if he is in attack state but keep him rotating towards the player because if i set the navemesh agent speed to 0 he will stop rotating too. -我的问题是如何阻止僵尸在攻击 state 时向玩家醒来,但要让他向玩家旋转,因为如果我将 navemesh 代理速度设置为 0,他也会停止旋转。
I was trying to add a comment, but need more reputation for that.我试图添加评论,但需要更多的声誉。 So had to make an "Answer" to reply.所以不得不做出一个“答案”来回复。
Are you using the same speed var to multiply with the speed of your zombie to also multiply the rotation with?您是否使用相同的速度变量来乘以僵尸的速度来乘以旋转?
If so, try adding a seperate var for the rotation speed.如果是这样,请尝试为旋转速度添加一个单独的 var。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.