MOHAMED
0
Q:

way do we use a Rigidbody in Get.component<Rigidbody>();

 using UnityEngine; using System.Collections;  public class Test : MonoBehaviour {     private Rigidbody rb;     void Awake(){          rb = gameObject.GetComponent<Rigidbody>();     }       private void Example() {         rb.velocity = some value;     } }
1

New to Communities?

Join the community