加速装置を作ろう

オブジェクトを加速させる
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AccelPoint : MonoBehaviour { private void OnTriggerEnter(Collider other) { other.gameObject.GetComponent<Rigidbody>().AddForce(new Vector3(0, 10, 30), ForceMode.VelocityChange); } }
C#













【2018版】BallGame(全25回)
他のコースを見る
オブジェクトを加速させる
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AccelPoint : MonoBehaviour { private void OnTriggerEnter(Collider other) { other.gameObject.GetComponent<Rigidbody>().AddForce(new Vector3(0, 10, 30), ForceMode.VelocityChange); } }
C#













加速装置を作ろう