Q19.webp
T

Q19.webp

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

Thông tin

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

Share this media

Back
Bên trên Bottom