Kizspy | Question: 19
(Choose 1 answer)
What does this script do when attached to a GameObject with a Rigidbody?
using UnityEngine;
public class ApplyForce: MonoBehaviour {
private Rigidbody rb;
void Start() {
rb = GetComponent<Rigidbody>();
rb.AddForce(Vector3.up 500f, ForceMode.Impulse);
A. Rotates the GameObject around the Y-axis
B. Applies an upward force instantly
C. Scales the GameObject
D. Disables gravity for the GameObject