public class example : MonoBehaviour {
Rigidbody rb;
Vector3 force;
void Start () {
force = new Vector3(5f, 0, 0);
rb = GetComponent();
print(“(Start) Velocity before force applied " + rb.velocity);//this gives value (0,0,0)
rb.AddForce(force, ForceMode.Force);
print(”(Start) Velocity after force applied " + rb.velocity);//this gives value (0,0,0)
}
void Update () {
print("(Update) Velocity after force applied " + rb.velocity);//this gives value (0.1,0,0)
}
}