D. Calling AddForce in Update causes inconsistent physics behavior
Solution
Step 1: Understand Unity physics update rules
Physics forces should be applied in FixedUpdate, not Update, for consistent simulation.
Step 2: Identify problem with applying force in Update
Applying force every frame in Update can cause jittery or unrealistic movement.
Final Answer:
Calling AddForce in Update causes inconsistent physics behavior -> Option D
Quick Check:
Use FixedUpdate for physics = A [OK]
Hint: Apply physics forces in FixedUpdate, not Update [OK]
Common Mistakes:
Thinking Vector3.forward is invalid
Assuming AddForce needs two parameters
Ignoring physics update timing rules
5. You want to simulate a bouncing ball that loses some energy on each bounce in Unity. Which approach best uses physics to achieve this realistic behavior?
hard
A. Manually change the ball's position every frame without Rigidbody
B. Add a Rigidbody and set the Physics Material's bounciness less than 1
C. Use Rigidbody but disable collisions to avoid bouncing
D. Apply a constant upward force every frame in Update
Solution
Step 1: Understand bouncing with physics materials
Physics Materials control how objects bounce and lose energy on collisions.
Step 2: Use Rigidbody with bounciness less than 1
Setting bounciness below 1 makes the ball bounce but lose energy realistically over time.
Final Answer:
Add a Rigidbody and set the Physics Material's bounciness less than 1 -> Option B
Quick Check:
Physics Material controls bounce energy loss = A [OK]
Hint: Use Physics Material bounciness < 1 for realistic bounce [OK]