Unity Unity Physics and Animation 2 — Questions and Answers
Question 1: What is the difference between a Static Collider and a Dynamic Collider in Unity?
- Static colliders have no Rigidbody and don't move; dynamic colliders have a Rigidbody and can move (Correct answer)
- Static colliders are faster to render
- Dynamic colliders ignore gravity
- Static colliders use mesh colliders only
Correct answer: Static colliders have no Rigidbody and don't move; dynamic colliders have a Rigidbody and can move
Static Colliders lack a Rigidbody and are intended for immovable geometry, while Dynamic Colliders have a Rigidbody and participate fully in physics simulation.
Question 2: In Unity's Animator, what is an 'Avatar' used for?
- Defining camera perspectives
- Mapping a humanoid skeleton to Unity's standard bone structure for retargeting animations (Correct answer)
- Creating blend trees
- Handling ragdoll physics
Correct answer: Mapping a humanoid skeleton to Unity's standard bone structure for retargeting animations
An Avatar maps a model's skeleton to Unity's humanoid rig definition, enabling animation retargeting between different humanoid characters.
Question 3: Which Rigidbody property controls how much air or fluid resistance is applied to slow linear motion?
- Mass
- Angular Drag
- Drag (Correct answer)
- Gravity Scale
Correct answer: Drag
The Drag property applies linear resistance to a Rigidbody, simulating air or fluid friction slowing down linear movement.
Question 4: What does the Physics.Raycast() function return in Unity?
- A list of all objects in the scene
- A boolean indicating whether the ray hit a collider, plus hit information (Correct answer)
- The distance to the nearest wall
- A reference to the camera
Correct answer: A boolean indicating whether the ray hit a collider, plus hit information
Physics.Raycast() returns true if the ray intersects a collider and fills a RaycastHit struct with details about the hit point, normal, and object.
Question 5: In Unity animation, what is the purpose of an Animation Layer?
- To stack multiple independent animation state machines that can blend or override each other (Correct answer)
- To group GameObjects for rendering
- To define LOD levels
- To store keyframe data
Correct answer: To stack multiple independent animation state machines that can blend or override each other
Animation Layers allow you to run separate state machines simultaneously, such as playing an upper-body reload animation while lower-body locomotion continues.
Question 6: Which collision detection mode should you use for fast-moving Rigidbodies to prevent tunneling through thin objects?
- Discrete
- Continuous (Correct answer)
- Interpolate
- Extrapolate
Correct answer: Continuous
Continuous collision detection tests the object's swept volume between frames, preventing fast-moving objects from tunneling through thin colliders.
What is the difference between a Static Collider and a Dynamic Collider in Unity?