加速装置を作ろう
加速装置
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);
}
}
【2021版】BallGame(全31回)
他のコースを見る