Kizspy Question: 33
(Choose 1 answer)
What does this script do?
using UnityEngine;
public class Physics Update: MonoBehaviour {
private Rigidbody rb;
void FixedUpdate() {
float move Input.GetAxis("Horizontal");
rb.AddForce(Vector3.right move * 10f);
void Start() {
rb = GetComponent<Rigidbody>();
A. Updates the GameObject's position within the Update cycle
B. Applies a force to the Rigidbody based on input in FixedUpdate()
C. Modifies the GameObject's material properties
D. Triggers an animation based on physics input