NEW
Font size
WorksheetsCompuScholar Chapter 5 Exam
Total questions: 20
Worksheet time: 10mins
Which of the following best describes the job of a "physics engine"?
To handle the complex math needed to simulate realistic physical behavior of game objects
To handle the logic necessary to add artificial intelligence to game objects
To help create very large virtual worlds within a video game
To help draw complex images on the screen
What would you do to a game object to make it react to gravity and other physical forces?
Add a Rigidbody 2D component
Add a Collider 2D component
Add a complex C# script
Add a Physics2D Material
Which of the following Rigidbody 2D component properties will change how fast an object falls in response to gravity?
Mass
Gravity Scale
Angular Drag
Constrain - Y
Which of the following Rigidbody 2D component properties would you set to freeze the position of an object in a horizontal (side-to-side) direction?
Constraints-Y
Constraints-Z
Constraints-X
HorizontalFreeze
Which of the following Rigidbody2D component properties will control the amount of air resistance an object will experience when flying through the air or falling?
Mass
Linear Damping
Angular Damping
Gravity Scale
Which of the following components would be best used to detect collisions around a pizza box in a 2D game?
Box Collider 2D
Circle Collider 2D
Edge Collider 2D
Polygon Collider 2D
Which of the following components would be best used to detect collisions around a bicycle wheel in a 2D game?
Box Collider 2D
Circle Collider 2D
Edge Collider 2D
Polygon Collider 2D
Which of the following components would be best used to detect collisions around an irregularly shaped rock?
Box Collider 2D
Polygon Collider 2D
Edge Collider 2D
Circle Collider 2D
How can you get a collider boundary to match the edge of your object image as closely as possible?
You have to rely on Unity to automatically set the best boundaries
You need to add the green boundary lines to the original image file
Click the "Edit Collider" button and adjust the green boundary lines
You need to add multiple Collider 2D components to the sprite to build up a combination of shapes that match your object
. An object that wants to move based on game physics AND detect collisions should have which component(s) attached?
Rigidbody 2D and Collider 2D
Rigidbody 2D only
•Income is taxed twice.
•corporate income
•individual income
•CorCollider 2D only
Physics2D only
Where do you configure "friction" and "bounciness" properties of an object?
On a Physics2D Material
On a Rigidbody 2D component
On a Collider 2D component
On a Transform component
Which of the following surfaces would likely have the highest "friction" value?
Rough Sandpaper
These will all have the same friction settings
Glass
Ice
Which of the following objects would most likely have the lowest "bounciness" value?
A tennis ball
A brick
A trampoline
A beach ball
Which of the following statements about sharing Physics2D Materials is true?
Each object has its own Physics 2D Material component.
Physics 2D Materials can be shared only by objects that have exactly the same type of collider.
Physics 2D Materials are Assets that can be shared by multiple objects.
Physics 2D materials are attached to a Rigidbody, and are therefore shared by all objects that use that same Rigidbody component.
If you want to create a surface that lets objects easily slide across and bounce high into the air upon collision, what kind of "friction" and "bounciness" settings should you use?
High friction and high bounciness
Low friction and high bounciness
Low friction and low bounciness
High friction and low bounciness
Which of the following events might be used to run some scripted logic?
Player clicks on a button
Player health reaches zero
Two objects collide
All of these, and more!
. Which of the following functions can Unity call in response to a regular, physics-based collision event?
OnCollisionEnter2D()
Collided()
Collided()
OnCollisionDetection()
Given the function below, what line of code could you write to show the name of the other object involved in a collision? void OnCollisionEnter2D(Collision2D otherObject)
Debug.Log("Collision with: " Collision2D.name);
Debug.Log("Collision with: " + otherObject.gameObject.name);
gameObject.log("Collision with: " + name);
Collision2D.log("Collision with: " + gameObject.name);
. Which of the following best describes how you set up a Unity game object to call a function when a collision is detected?
Attach a script with the event function to the game object
Draw a line from the object in the hierarchy panel to the function in your script
Attach a script with the event function to the Rigidbody 2D component on the object
Add a Collider 2D component and a script with the event function to the game object
If you want a collision event to call a function but not cause the objects to react physically, what setting should you change?
Disable the "Physics2D" setting on the Rigidbody 2D component
Check the "Is Trigger" box on the collider
Check the "Transparent" box on the collider
Set the "Body Type" property on the Sprite Renderer component
