In Unity, physics engines simulate realistic behavior to improve the game experience. Which of the following best explains why?
Think about how players expect objects to behave in real life.
Physics engines simulate forces, collisions, and motion to create believable interactions, making the game world feel real and immersive.
Consider this Unity C# code that applies a force to a Rigidbody. What will happen when this code runs?
Rigidbody rb = GetComponent<Rigidbody>(); rb.AddForce(new Vector3(0, 10, 0), ForceMode.Impulse); Debug.Log(rb.velocity);
Impulse force changes velocity instantly in the direction of the force vector.
Using AddForce with ForceMode.Impulse applies an immediate velocity change, so the Rigidbody moves upward quickly.
Look at this code snippet that tries to simulate gravity manually. Why might the object not fall as expected?
void FixedUpdate() {
Vector3 gravity = new Vector3(0, -9.81f, 0);
transform.position += gravity * Time.deltaTime;
}Think about how Unity physics expects Rigidbody movement to be handled.
Directly changing transform.position ignores Rigidbody physics, causing unexpected or jittery movement. Forces should be applied to Rigidbody instead.
Choose the code snippet that correctly applies a force to a Rigidbody component in Unity.
Check the method signature and parameter types for AddForce.
AddForce requires a Vector3 parameter. Option C uses Vector3.up multiplied by 5 and specifies ForceMode, which is valid.
Unity uses a physics engine to simulate collisions. Which of the following best describes how it calculates realistic collision responses?
Think about how real objects bounce or stop when they hit each other.
Physics engines use mass, velocity, and collision direction to calculate forces that change velocities realistically, simulating bounces and impacts.