Exemplo n.º 1
0
    private void SetSpeeds()
    {
        var velocity = _agent.velocity;

        velocity.y = 0;

        _animator.SetFloat(ForwardSpeed, _agent.enabled?_agent.LocalForwardVelocity():_rigidbody.LocalForwardVelocity());
        _animator.SetFloat(RotationInput, _rotationSpeedEstimate);
    }