###実現したいこと
Unityで玉転がしのC#コードを入力して、無反応でボールが動いてくれない状態です。
このコードで合っていると思うんですが、回答をお願いします。
###該当のソースコード
using UnityEngine;
using System.Collections;
public class Ball : MonoBehaviour {
private float speed = 20.0f; // Use this for initialization void Start () { this.GetComponent<Rigidbody>().AddForce( (transform.forward + transform.right) * speed, ForceMode.VelocityChange); } // Update is called once per frame void Update () { }
}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。