Recall & Review
beginner
What is obstacle avoidance in game development?
Obstacle avoidance is a technique used to prevent characters or objects from colliding with obstacles in the game world by detecting and steering around them.
Click to reveal answer
beginner
Which Unity method is commonly used to detect obstacles for avoidance?
The Physics.Raycast method is commonly used to detect obstacles by casting invisible rays to check for collisions ahead.
Click to reveal answer
beginner
How does a Raycast help in obstacle avoidance?
A Raycast sends an invisible line forward from the object to check if it hits an obstacle, allowing the object to decide when to change direction to avoid collision.
Click to reveal answer
intermediate
What is the role of steering behaviors in obstacle avoidance?
Steering behaviors calculate how an object should move or turn to smoothly avoid obstacles while continuing toward its goal.
Click to reveal answer
beginner
Name a simple method to implement obstacle avoidance in Unity.
A simple method is to use Raycasts in front of the moving object to detect obstacles and then change the object's direction or stop movement when an obstacle is detected.
Click to reveal answer
What does a Raycast do in Unity for obstacle avoidance?
✗ Incorrect
A Raycast sends an invisible line forward to detect if there is an obstacle in the path.
Which Unity method is commonly used to check for obstacles in front of a moving object?
✗ Incorrect
Physics.Raycast is used to detect obstacles by casting a line forward from the object.
What should an object do when a Raycast detects an obstacle?
✗ Incorrect
The object should change direction or stop to avoid hitting the obstacle.
Which of these is NOT a common technique for obstacle avoidance?
✗ Incorrect
Changing object color does not help avoid obstacles.
What is the main goal of obstacle avoidance in games?
✗ Incorrect
Obstacle avoidance helps objects avoid collisions with obstacles.
Explain how Raycasting helps in obstacle avoidance in Unity.
Think about how the object 'sees' obstacles before hitting them.
You got /3 concepts.
Describe a simple way to implement obstacle avoidance for a moving character in Unity.
Consider how the character can 'look' ahead and react.
You got /3 concepts.