0
0
Unityframework~5 mins

Obstacle avoidance in Unity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ASends an invisible line to detect obstacles ahead
BCreates a visible path for the player
CChanges the color of obstacles
DIncreases the speed of the object
Which Unity method is commonly used to check for obstacles in front of a moving object?
AOnCollisionEnter
BStart
CUpdate
DPhysics.Raycast
What should an object do when a Raycast detects an obstacle?
AIgnore the obstacle and keep moving
BIncrease speed
CChange direction or stop to avoid collision
DJump over the obstacle automatically
Which of these is NOT a common technique for obstacle avoidance?
ASteering behaviors
BChanging object color
CRaycasting
DPathfinding
What is the main goal of obstacle avoidance in games?
ATo prevent collisions with obstacles
BTo change the game background
CTo make objects move faster
DTo increase score automatically
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.