Ejemplo n.º 1
0
    void Update()
    {
        var x = Input.GetAxis("Horizontal");
        var y = Input.GetAxis("Vertical");

        var v = new Vector3(x, 0, y) * speed;

        rvo.ForceSetVelocity(v);
        transform.position += v * Time.deltaTime;
    }