You can use desiredVelocity to find what direction it's moving, and then Vector3.Project to decompose that into how it's moving forward/right.
DOWNLOAD: https://tinurli.com/2f9kt9
DOWNLOAD: https://tinurli.com/2f9kt9
navmesh-move-forward
NavMeshAgent movement. }; public enum ... What is the fastest this mover can move? rotationSpeed = 5.0f, ... If we have a destination, set velocity towards that. 939c2ea5af
コメント