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. Rotates the character sideways
B. Changes the character's color
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. Light
B. Rigidbody
C. Audio Source
D. Animator

3 What is the main purpose of a Collider component?

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

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

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

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

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

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

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

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

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

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

Objects in 3D Game Kit Easy
A. A temporary console message
B. A reusable configured object
C. A collection of input keys
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. Terrain object
B. Light object
C. Player object
D. Enemy object

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

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

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

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

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

Advanced Input System Easy
A. A physics collider
B. A scene camera
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 arrange scene lighting
B. To combine mesh textures
C. To group related actions
D. To control object gravity

14 Which component commonly connects a player to Input Actions?

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

15 What is an event in game programming?

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

16 What does an event listener do?

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

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

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

18 What is a character rig?

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

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

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

20 What is the purpose of a rig constraint?

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

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 camera field of view
C. The rigidbody mass
D. The collider material friction value

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 have trigger colliders
B. Both objects use different collision layers
C. Both objects use kinematic rigidbodies
D. Both objects have different materials

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

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

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. Invoke an event when health changes
B. Reset health every frame before checking it
C. Store health only in the player camera
D. Directly change every enemy script

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 light and a terrain component
B. A camera and an animation controller
C. A pickup collider and collection script
D. A static mesh with no interaction logic

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

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

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 particle system and a reflection probe
C. An AI controller and waypoint objects
D. A terrain collider and a directional light

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 particle system to detect weight
B. Use a camera to detect distance
C. Use a light to detect shadows
D. Use a trigger to detect presence

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. Remove colliders from all collectibles
B. Disable physics for the projectile permanently
C. Configure layers and collision responses
D. Give every object the same collision layer

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. A camera switch for each controller
C. Separate scenes for each device
D. An action with multiple bindings

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. Replace the action with a button
B. Disable all stick input
C. Use a response curve processor
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. Change the button's physical key at runtime
B. Read the button in every script
C. Create separate action maps
D. Bind both actions to the mouse only

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 disabled interaction
D. A tap 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 platform polls every object each frame
B. The lever invokes a shared event
C. The lever duplicates the platform script
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 listener was not unsubscribed
C. The collider used a mesh filter
D. The listener had too many animations

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 checkpoint identifier
B. The current camera zoom
C. The number of active materials
D. The screen resolution

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 parent constraint on the environment
B. A position-only camera constraint
C. A two-bone IK constraint
D. A multi-aim 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. Increase the texture resolution
B. Remove the leg bones from the rig
C. Use foot IK targets
D. Change the camera projection

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. Freeze all lower-body bones
B. Rotate the entire root transform
C. Replace the movement controller with a camera
D. Add a weighted upper-body rig

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 retain in the accumulator
B. Run two physics steps and discard the remaining accumulated time
C. Run one physics step 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. Remove the Rigidbody and translate the collider during FixedUpdate
B. Use a dynamic Rigidbody and overwrite its position during LateUpdate
C. Modify the platform's Transform directly during each Update call
D. Use a kinematic Rigidbody and call MovePosition from FixedUpdate

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. FixedUpdate stops, while menu animation uses Time.unscaledDeltaTime in Update
C. FixedUpdate continues, while rigidbodies are frozen automatically by interpolation
D. Update stops, while menu animation uses Time.fixedDeltaTime in FixedUpdate

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 Rigidbody.Sleep() on every teleported object
C. Call Physics.SyncTransforms() after all Transform changes
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. Apply gravity through the Transform after CharacterController.Move completes
B. Enable Rigidbody gravity while retaining the same CharacterController movement
C. Increase CharacterController.stepOffset until downward motion is generated
D. Integrate vertical velocity and include it in every CharacterController.Move call

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. Duplicate the asset whenever an enemy receives its first damage event
B. Store both values in the asset and index them by each enemy's name
C. Keep maximum health in the asset and current health in each enemy component
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. Reset the Transform in Update until the projectile receives its first collision
B. Preserve all component state and compensate by extending the projectile's lifetime
C. Reconstruct only the Rigidbody whenever the projectile is rented from the pool
D. Reset velocity, trail state, and lifetime whenever the projectile is returned and rented

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 both components on every collider and resolve ownership after health reaches zero
B. Place both components on the player root and detect distance from the sword mesh
C. Place a Damager on the sword hitbox, a Damageable on targets, and filter the owner
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. Use the target scene's build index as both the scene key and the spawn position
B. Store the destination's runtime instance ID and resolve it before loading the target scene
C. Resolve a stable destination identifier after loading, then move the player to its spawn transform
D. Select the first transition object returned by a global object search after loading

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. Increase friction on the player's collider and allow the Transform to remain otherwise unchanged
B. Copy the platform's linear velocity while ignoring its angular displacement around the player
C. Add the platform's world position directly to the player's position on every rendered frame
D. Apply the platform's frame-to-frame pose delta to the player before player-controlled motion

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 composite root, then serialize the generated action callbacks
D. Interactively rebind the Up part's binding index, then save binding overrides as JSON

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 at the initial press
B. started, followed by performed immediately upon release
C. performed, followed by canceled when the duration expires
D. started, followed by canceled without a performed phase

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. Read the action value once before enabling the vehicle map and discard that single value
B. Gate the newly enabled action until its bound control returns below the release threshold
C. Add a normalization processor so the held control initially evaluates to a zero value
D. Enable both maps simultaneously and let the vehicle map consume the gameplay callback

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 dynamically and call Physics.Simulate from every input callback
C. Process input events in fixed updates and consume the action values in FixedUpdate
D. Process input events before rendering and apply forces from action callbacks immediately

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. Restart iteration whenever the listener collection is modified
B. Iterate forward over the live collection using its current count
C. Iterate backward over the live collection while removing entries
D. Iterate over a snapshot copy of the listener collection

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. Call RemoveAllListeners on the subscriber before destroying the publisher object
B. Create a second equivalent lambda and unsubscribe it repeatedly during OnDisable
C. Mark the lambda as static so delegate equality ignores the generated method instance
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. The runtime listeners remain, while the persistent listeners are removed
C. The persistent listeners remain, while the runtime listeners are removed
D. All four listeners are removed from both runtime state and serialized data

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 root translates automatically until the target enters the reachable region
C. The joints bend away from the target to preserve the hint direction
D. The chain fully extends toward the target but cannot reach it

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 A before B in the rig evaluation order
D. Place B before A 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 the hand's final skinned-mesh vertex transform
B. Keep the hierarchy unchanged and increase the Animator playback speed
C. Keep the target under the hand and reduce the constraint weight slightly
D. Parent the target to an independent world or character reference transform