이 페이지가 있는 버전:
이 페이지가 없는 버전:
The Rigidbody attached to this GameObject (Read Only). (Null if there is none attached).
using UnityEngine;public class Example : MonoBehaviour { void Start() { gameObject.GetComponent<Rigidbody>().AddForce(0, 0, 1); } }