public class players: MonoBehaviour
{
public Rigidbody rb ;
void Start(){
rb = GetComponent<Rigidbody>();
}
void Update(){
float moveHorizontal = Input.GetAxis(“Horizontal”);
float moveVertical =
Input.GetAxis(“Vertical”);
Vector3 movement =
new Vecter3(moveHorizontal,0.0f,moveVertical)
rb.AddForce(movement * speed);
}
}
これは何をするプログラミングですか?
https://teratail.com/questions/127632 同じコードの質問をされていて解決済のようです。理解出来たなら自己回答を投稿、理解出来ないならば質問内容を追記してください。こちらも参考に→https://teratail.com/help/question-tips