a65809ab1c2607f43eed858a46841b6d57c8b38aed2001572b9063f2619474c3e7e0417b6b957d909b505fb1ef



이동이 되는거는 같은데 왜 이렇게 보여지는건가요...정말 모르겠습니다

소스코드는 이렇습니다


using System.Collections;

using System.Collections.Generic;

using UnityEngine;


public class Player : MonoBehaviour

{

    public Vector2 inputVec;

    public float speed;


    Rigidbody2D rigid;


    void Awake()

    {

        rigid = GetComponent<Rigidbody2D>();

    }


    void Update()

    {

        inputVec.x = Input.GetAxis("Horizontal");

        inputVec.y = Input.GetAxis("Vertical");

    }


    void FixedUpdate()

    {

        Vector2 nextVec = inputVec.normalized * speed * Time.fixedDeltaTime;

        rigid.MovePosition(rigid.position + nextVec);

    }

}


뭐라고 검색해야 할지도 모르겠고 어찌어찌 검색해봐도 나오질 않네요...부탁드립니다