Unity 之 上下左右鍵控制物體移動(經過加速度、速度進行移動)

[Range(0,0.2f)] public float speed = 0.5f;ui Vector3 velocity = Vector3.zero; Vector3 accel = Vector3.zero;spa if (Input.GetKey(KeyCode.RightArrow)) {      accel = Vector3.right * speed; } else if (In
相關文章
相關標籤/搜索