Q33.webp
T

Q33.webp

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

Thông tin

Category
FGU301
Thêm bởi
thuyhoa276
Ngày thêm
Lượt xem
173
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom