Unit 2: Player Controls and Positioning - Practice Quiz

CSE434 — Game Development In 3D 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What does gravity commonly do to a player character in a 3D game?

Game Manager Physics Easy
A. Changes the character's color
B. Rotates the character sideways
C. Pulls the character downward
D. Moves the character forward

2 Which Unity component allows a GameObject to respond to forces and gravity?

Game Manager Physics Easy
A. Rigidbody
B. Audio Source
C. Light
D. Animator

3 What is the main purpose of a Collider component?

Game Manager Physics Easy
A. To define collision boundaries
B. To display screen menus
C. To store animation clips
D. To play character sounds

4 Which Unity method is commonly used for physics updates at fixed time intervals?

Game Manager Physics Easy
A. Update
B. LateUpdate
C. Start
D. FixedUpdate

5 What is the main purpose of a gameplay script attached to a GameObject?

Gameplay Components Easy
A. To rename project folders
B. To increase screen brightness
C. To compress texture files
D. To define object behavior

6 Which gameplay component commonly stores how much damage a character can take?

Gameplay Components Easy
A. Camera component
B. Navigation component
C. Lighting component
D. Health component

7 What is the main role of a Camera component in a 3D game?

Gameplay Components Easy
A. To define the player's view
B. To detect physical collisions
C. To calculate character health
D. To create input bindings

8 What is a prefab in a 3D game project?

Objects in 3D Game Kit Easy
A. A collection of input keys
B. A temporary console message
C. A reusable configured object
D. A type of lighting calculation

9 Which object normally represents the user-controlled character in a 3D Game Kit scene?

Objects in 3D Game Kit Easy
A. Player object
B. Light object
C. Enemy object
D. Terrain object

10 What is a trigger volume commonly used for in a 3D level?

Objects in 3D Game Kit Easy
A. Detecting when an object enters
B. Increasing the texture resolution
C. Editing the character's skeleton
D. Changing the project's file format

11 What does an Input Action represent in Unity's Input System?

Advanced Input System Easy
A. A gameplay command
B. A character bone
C. A physics material
D. A lighting effect

12 What does an input binding connect to an Input Action?

Advanced Input System Easy
A. A scene camera
B. A physics collider
C. A character material
D. A device control

13 What is the purpose of an Action Map in Unity's Input System?

Advanced Input System Easy
A. To group related actions
B. To combine mesh textures
C. To arrange scene lighting
D. To control object gravity

14 Which component commonly connects a player to Input Actions?

Advanced Input System Easy
A. Mesh Renderer
B. Box Collider
C. Player Input
D. Audio Listener

15 What is an event in game programming?

Event Handling Easy
A. A notification that something happened
B. A bone inside a character rig
C. A force added to a Rigidbody
D. A texture applied to an object

16 What does an event listener do?

Event Handling Easy
A. Creates a new animation clip
B. Applies gravity to an object
C. Responds when an event occurs
D. Draws a mesh on the screen

17 Which Unity callback is commonly called when another Collider enters a trigger?

Event Handling Easy
A. OnCollisionExit
B. OnTriggerStay
C. OnTriggerExit
D. OnTriggerEnter

18 What is a character rig?

Animation Rigging Easy
A. A set of lighting materials
B. A group of input bindings
C. A collection of sound effects
D. A system of bones and controls

19 What does inverse kinematics, or IK, commonly control?

Animation Rigging Easy
A. A texture using a material
B. A sound using a mixer
C. A limb using a target
D. A scene using a camera

20 What is the purpose of a rig constraint?

Animation Rigging Easy
A. To load a different scene
B. To guide a transform's movement
C. To calculate a player's score
D. To create a physics material

21 A player moves down a ramp in a 3D game. Which physics setting most directly determines whether the player accelerates due to gravity while remaining grounded?

Game Manager Physics Medium
A. The gravity setting
B. The collider material friction value
C. The rigidbody mass
D. The camera field of view

22 Two objects collide, but neither object moves after the collision. Which configuration is the most likely cause?

Game Manager Physics Medium
A. Both objects use different collision layers
B. Both objects use kinematic rigidbodies
C. Both objects have different materials
D. Both objects have trigger colliders

23 A character occasionally passes through a thin wall when moving quickly. Which physics solution is most appropriate?

Game Manager Physics Medium
A. Disable gravity on the character
B. Use continuous collision detection
C. Increase the camera clipping distance
D. Reduce the wall's material roughness

24 A health component should notify other systems when the player's health reaches zero. Which design best supports this behavior?

Gameplay Components Medium
A. Store health only in the player camera
B. Invoke an event when health changes
C. Directly change every enemy script
D. Reset health every frame before checking it

25 A pickup should disappear after the player collects it and increase the player's ammunition. Which component arrangement is most suitable?

Gameplay Components Medium
A. A static mesh with no interaction logic
B. A camera and an animation controller
C. A light and a terrain component
D. A pickup collider and collection script

26 A reusable door component must support different opening speeds in several levels. Which approach is most appropriate?

Gameplay Components Medium
A. Create a separate player for each speed
B. Change the project frame rate per level
C. Hard-code one speed in every scene
D. Expose an opening speed parameter

27 In a 3D Game Kit scene, a patrolling enemy should detect the player and move between waypoints. Which combination is most relevant?

Objects in 3D Game Kit Medium
A. A camera and a post-processing volume
B. A terrain collider and a directional light
C. A particle system and a reflection probe
D. An AI controller and waypoint objects

28 A 3D Game Kit pressure plate should open a nearby gate only while the player stands on it. Which behavior is most appropriate?

Objects in 3D Game Kit Medium
A. Use a trigger to detect presence
B. Use a camera to detect distance
C. Use a light to detect shadows
D. Use a particle system to detect weight

29 A Game Kit projectile should damage enemies but pass through collectible objects. Which setup best supports this requirement?

Objects in 3D Game Kit Medium
A. Give every object the same collision layer
B. Remove colliders from all collectibles
C. Disable physics for the projectile permanently
D. Configure layers and collision responses

30 A game must support keyboard movement and gamepad movement using the same player movement code. Which Advanced Input System feature is most useful?

Advanced Input System Medium
A. A different player prefab per key
B. An action with multiple bindings
C. A camera switch for each controller
D. Separate scenes for each device

31 A character moves too slowly when using a gamepad stick at a shallow angle. Which input-processing adjustment is most likely to help?

Advanced Input System Medium
A. Use a response curve processor
B. Replace the action with a button
C. Disable all stick input
D. Add a dead zone processor

32 The same button should make the character jump during gameplay but pause the game in a menu. Which input design is most appropriate?

Advanced Input System Medium
A. Create separate action maps
B. Bind both actions to the mouse only
C. Read the button in every script
D. Change the button's physical key at runtime

33 A charged attack should respond continuously while a button is held, rather than only when it is pressed. Which input interaction is most suitable?

Advanced Input System Medium
A. A press-only interaction
B. A hold interaction
C. A tap interaction
D. A disabled interaction

34 A moving platform should start when a lever is activated, but the lever should not need a direct reference to the platform. Which event pattern is best?

Event Handling Medium
A. The lever duplicates the platform script
B. The platform polls every object each frame
C. The lever invokes a shared event
D. The camera directly moves the platform

35 A listener continues receiving damage events after its object has been disabled. What is the most likely issue?

Event Handling Medium
A. The event was raised too slowly
B. The collider used a mesh filter
C. The listener had too many animations
D. The listener was not unsubscribed

36 Several systems must react when the player reaches a checkpoint. Which event payload is most useful for updating the correct checkpoint state?

Event Handling Medium
A. The screen resolution
B. The current camera zoom
C. The number of active materials
D. The checkpoint identifier

37 A character should aim a weapon toward a moving target while preserving the normal walk animation. Which rigging approach is most appropriate?

Animation Rigging Medium
A. Disable the character animator
B. Use an aim constraint rig
C. Rotate only the camera
D. Replace walking with an idle clip

38 A character's hand must remain attached to a sword handle during an animation. Which constraint is most appropriate?

Animation Rigging Medium
A. A multi-aim constraint
B. A two-bone IK constraint
C. A parent constraint on the environment
D. A position-only camera constraint

39 A character's feet slide or float while walking over uneven ground. Which rigging solution can adjust foot placement to the surface?

Animation Rigging Medium
A. Change the camera projection
B. Increase the texture resolution
C. Remove the leg bones from the rig
D. Use foot IK targets

40 A rigged character's upper body should turn toward an enemy, but the legs should continue following the movement animation. Which setup is most suitable?

Animation Rigging Medium
A. Rotate the entire root transform
B. Replace the movement controller with a camera
C. Add a weighted upper-body rig
D. Freeze all lower-body bones

41 A game manager uses Unity's fixed timestep with . One rendered frame contributes to an initially empty physics accumulator, and no maximum-timestep cap is reached. How should the physics loop process this frame?

Game Manager Physics Hard
A. Run two physics steps and discard the remaining accumulated time
B. Run one physics step and retain in the accumulator
C. Run two physics steps and retain in the accumulator
D. Run three physics steps and discard from the accumulator

42 A moving platform must follow a scripted trajectory while still producing coherent contact motion for dynamic rigidbodies standing on it. Which implementation is most appropriate?

Game Manager Physics Hard
A. Use a dynamic Rigidbody and overwrite its position during LateUpdate
B. Remove the Rigidbody and translate the collider during FixedUpdate
C. Use a kinematic Rigidbody and call MovePosition from FixedUpdate
D. Modify the platform's Transform directly during each Update call

43 A pause manager sets Time.timeScale to 0, but the pause menu must animate while gameplay physics remains frozen. Which behavior should the manager rely on?

Game Manager Physics Hard
A. Update continues with normal deltaTime, while physics requires manual suspension
B. Update stops, while menu animation uses Time.fixedDeltaTime in FixedUpdate
C. FixedUpdate continues, while rigidbodies are frozen automatically by interpolation
D. FixedUpdate stops, while menu animation uses Time.unscaledDeltaTime in Update

44 A checkpoint manager teleports several collider-bearing objects by changing their Transforms. Physics.autoSyncTransforms is disabled, but a raycast later in the same frame must observe the new poses. What is required before the raycast?

Game Manager Physics Hard
A. Call Physics.BakeMesh() for every affected collider
B. Call Physics.SyncTransforms() after all Transform changes
C. Call Rigidbody.Sleep() on every teleported object
D. Call Physics.Simulate(0) before changing any Transform

45 A player uses a CharacterController. Walking off a ledge leaves the character suspended because movement only supplies horizontal displacement. Which component-level correction is required?

Gameplay Components Hard
A. Enable Rigidbody gravity while retaining the same CharacterController movement
B. Integrate vertical velocity and include it in every CharacterController.Move call
C. Increase CharacterController.stepOffset until downward motion is generated
D. Apply gravity through the Transform after CharacterController.Move completes

46 Twenty enemies reference one ScriptableObject containing maximum health. Damaging one enemy unexpectedly changes the health displayed for every enemy. Which redesign best preserves shared configuration without shared runtime state?

Gameplay Components Hard
A. Keep maximum health in the asset and current health in each enemy component
B. Store both values in the asset and index them by each enemy's name
C. Duplicate the asset whenever an enemy receives its first damage event
D. Make the asset immutable and calculate current health from global damage

47 A pooled projectile has a Rigidbody, a trail, and a remaining-lifetime counter. After reuse, it sometimes moves in its previous direction and expires immediately. Which lifecycle policy is most robust?

Gameplay Components Hard
A. Reconstruct only the Rigidbody whenever the projectile is rented from the pool
B. Reset the Transform in Update until the projectile receives its first collision
C. Reset velocity, trail state, and lifetime whenever the projectile is returned and rented
D. Preserve all component state and compensate by extending the projectile's lifetime

48 A sword in a 3D Game Kit-style architecture must damage enemies but never its owning player, even when colliders overlap during an attack. Which setup best separates responsibility?

Objects in 3D Game Kit Hard
A. Place a Damager on the sword hitbox, a Damageable on targets, and filter the owner
B. Place both components on the player root and detect distance from the sword mesh
C. Place both components on every collider and resolve ownership after health reaches zero
D. Place a Damageable on the sword hitbox, a Damager on targets, and ignore triggers

49 Two scenes contain several transition objects, and build indices may change between releases. What is the most reliable way to place the player at the intended destination after a scene transition?

Objects in 3D Game Kit Hard
A. Store the destination's runtime instance ID and resolve it before loading the target scene
B. Resolve a stable destination identifier after loading, then move the player to its spawn transform
C. Select the first transition object returned by a global object search after loading
D. Use the target scene's build index as both the scene key and the spawn position

50 A kinematic player controller stands on a rotating and translating platform object. Parenting the player causes scale and rotation artifacts. Which alternative most accurately carries the player?

Objects in 3D Game Kit Hard
A. Copy the platform's linear velocity while ignoring its angular displacement around the player
B. Add the platform's world position directly to the player's position on every rendered frame
C. Apply the platform's frame-to-frame pose delta to the player before player-controlled motion
D. Increase friction on the player's collider and allow the Transform to remain otherwise unchanged

51 A 2DVector composite binds movement to four keys. The player must rebind only the Up part and preserve the override across sessions. Which approach is correct?

Advanced Input System Hard
A. Replace the action's expected control type, then save the entire input asset as a prefab
B. Change the keyboard layout processor, then serialize the active control device description
C. Interactively rebind the Up part's binding index, then save binding overrides as JSON
D. Interactively rebind the composite root, then serialize the generated action callbacks

52 An action uses a default Hold interaction with duration . The control is pressed for and then released. Which phase sequence should gameplay code expect?

Advanced Input System Hard
A. started, followed by performed immediately upon release
B. started, followed by canceled without a performed phase
C. performed, followed by canceled when the duration expires
D. started, followed by performed at the initial press

53 When switching from a gameplay action map to a vehicle map, the acceleration key may already be held. The vehicle must not accelerate until the player releases and presses it again. Which design directly enforces this requirement?

Advanced Input System Hard
A. Gate the newly enabled action until its bound control returns below the release threshold
B. Read the action value once before enabling the vehicle map and discard that single value
C. Enable both maps simultaneously and let the vehicle map consume the gameplay callback
D. Add a normalization processor so the held control initially evaluates to a zero value

54 Physics movement reads input exclusively in FixedUpdate. Which Input System configuration most directly aligns input event processing with those physics reads?

Advanced Input System Hard
A. Process input events manually in LateUpdate and consume values in FixedUpdate
B. Process input events in fixed updates and consume the action values in FixedUpdate
C. Process input events before rendering and apply forces from action callbacks immediately
D. Process input events dynamically and call Physics.Simulate from every input callback

55 An event bus guarantees that every listener registered at dispatch start is invoked exactly once, even if a listener subscribes or unsubscribes callbacks during dispatch. Which iteration strategy satisfies that contract?

Event Handling Hard
A. Iterate over a snapshot copy of the listener collection
B. Iterate backward over the live collection while removing entries
C. Iterate forward over the live collection using its current count
D. Restart iteration whenever the listener collection is modified

56 A component subscribes using publisher.Changed += value => Handle(value); and later attempts to unsubscribe using the same lambda expression text. The handler remains registered. What is the correct fix?

Event Handling Hard
A. Mark the lambda as static so delegate equality ignores the generated method instance
B. Create a second equivalent lambda and unsubscribe it repeatedly during OnDisable
C. Call RemoveAllListeners on the subscriber before destroying the publisher object
D. Store the delegate instance in a field and use that same instance for unsubscription

57 A UnityEvent has two Inspector-configured persistent listeners and two runtime listeners added with AddListener. What remains after calling RemoveAllListeners() during play?

Event Handling Hard
A. All four listeners remain until the declaring object is destroyed
B. All four listeners are removed from both runtime state and serialized data
C. The persistent listeners remain, while the runtime listeners are removed
D. The runtime listeners remain, while the persistent listeners are removed

58 A Two Bone IK chain has segment lengths and . Its target is at distance from the root, with full constraint weight. What is the physically achievable result?

Animation Rigging Hard
A. The second segment scales until the end effector reaches the target
B. The chain fully extends toward the target but cannot reach it
C. The joints bend away from the target to preserve the hint direction
D. The root translates automatically until the target enters the reachable region

59 Two rig constraints modify the same arm. Constraint A aims the upper arm, and Constraint B applies hand IK. The final hand pose must be solved from A's modified arm pose. How should they be evaluated?

Animation Rigging Hard
A. Evaluate A in Update and B independently in FixedUpdate
B. Give both constraints identical order and halve both weights
C. Place B before A in the rig evaluation order
D. Place A before B in the rig evaluation order

60 A hand IK target is parented beneath the same hand bone that the IK constraint controls. The hand drifts or oscillates because moving the hand also moves its target. Which hierarchy change best removes the feedback loop?

Animation Rigging Hard
A. Parent the target to an independent world or character reference transform
B. Keep the hierarchy unchanged and increase the Animator playback speed
C. Parent the target to the hand's final skinned-mesh vertex transform
D. Keep the target under the hand and reduce the constraint weight slightly