c#
1using UnityEngine; 2using System.Collections; 3 4public class Ball : MonoBehaviour { 5 6 public float speed = 200.0f; 7 8 // Use this for initialization 9 void Start () { 10 11 this.GetComponent<Rigidbody>().AddForce( 12 (transform.right ) * speed, 13 ForceMode.VelocityChange); 14 15 } 16 17 18}
このコードで、時速200kmには、なりませんか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/08 05:10