yoklainterview sim

Game Development Gp Character Controller Movement Interview Questions

75 verified Game Development Gp Character Controller Movement interview questions — solve with answers, learn from explanations, test yourself in a real simulation.

Try the real simulation →

Sample questions

Gp Character Controller MovementDifficulty 1
A character controller commonly checks whether it is standing on ground by casting a short probe (a ray or small sweep) straight down from its base each step. What does the resulting hit's surface normal let the controller compute?
  • aThe friction coefficient of the surface
  • bThe distance to the next obstacle
  • cThe slope angle of the surface
  • dThe mass of the surface object
Explanation:The hit normal is compared against the world-up vector (the angle whose cosine is their dot product) to get the surface slope angle, which then feeds walkable/non-walkable and sliding decisions. (a) needs a separate material lookup, not geometry. (b) is a distance, not something a normal encodes. (d) needs a physical mass property a normal doesn't carry.
Gp Character Controller MovementDifficulty 3
A controller's ground check uses a straight-down ray of a fixed short length from the character's feet. While the character walks down a steep ramp at speed, testers report brief, repeated 'airborne' flickers even though the character never actually leaves the ramp. What is the most likely cause?
  • aGaps between the ramp's collision triangles
  • bThe ray falling short of the downhill slope surface
  • cThe ray being cast upward instead of downward
  • dThe forward speed exceeding the physics step's limit
Explanation:On a downward slope, the surface drops away faster than it does on flat ground for the same forward travel, so a ray sized for flat-ground clearance can end each step above the ramp surface, missing the hit and briefly reporting airborne. (a) is a content bug unrelated to slope motion. (c) describes a broken query, not a flicker pattern tied to slope. (d) isn't how this kind of miss happens; it's a geometric clearance issue, not a step-size cap.
Gp Character Controller MovementDifficulty 1
Compared to a single straight-down ray, what practical advantage does using a small sphere or capsule sweep for ground detection give a character controller?
  • aIt samples a small area instead of a point
  • bIt removes the need for a surface normal
  • cIt guarantees ground contact on every slope
  • dIt computes horizontal speed automatically
Explanation:A sweep has width, so it checks an area rather than a single infinitely thin line; this makes it more forgiving of small ledges, seams, or the character standing near an edge, where a single ray could slip through a gap. (b) is false, the sweep still returns a normal. (c) overstates it: slope limits and other conditions can still break contact. (d) is unrelated to ground detection.
Gp Character Controller MovementDifficulty 2
A controller stores a boolean 'grounded' state each step based on that step's ground check. Why is it common to also keep the last measured ground normal for the single step in which grounded becomes false, rather than discarding it immediately?
  • aThe normal is needed for the character's shadow
  • bThe physics engine requires it for the next collision
  • cIt lets the controller skip the next ground check
  • dSame-step movement code may still need that normal
Explanation:Some controller logic, such as clamping movement to a slope's plane or deciding whether the character should slide, runs using the ground normal from the same step; keeping the last value avoids that logic seeing a sudden null right when the state flips. (a) is unrelated, shadows use their own geometry pass. (b) isn't a physics engine requirement, it's controller-side bookkeeping. (c) is false, the next step still needs its own fresh check.
Gp Character Controller MovementDifficulty 1
A platformer controller implements 'coyote time': for a short grace window after the character walks off a ledge with no jump input, a jump press still counts as a valid ground jump. What problem does this solve?
  • aAccidental falls off ledges
  • bA slightly late jump input
  • cLow maximum jump height near ledges
  • dThe need for a ground check while airborne
Explanation:Players perceive 'I was still on the ledge' slightly later than the exact frame contact is lost, so a strict same-frame-only rule feels unresponsive; a brief grace window absorbs that perception gap. (a) is false, the character still falls, jumping is just still allowed briefly. (c) is unrelated, the grace window doesn't change jump height. (d) is false, ground checks keep running normally.
Gp Character Controller MovementDifficulty 2
Two common ways to give variable jump height (a quick tap jumps low, a held press jumps high) are: (1) cutting the upward velocity when the jump button is released, and (2) applying stronger gravity while ascending if the button is not held. What is the main mechanical difference between them?
  • a(1) acts once; (2) acts continuously
  • b(1) only functions without gravity present
  • c(2) requires removing the jump button entirely
  • d(1) only applies to the character's first jump
Explanation:Velocity-cut is a one-time edit applied at the moment of release; gravity-scaling instead keeps modifying the acceleration applied every step while ascending and the button is up, producing a smoother, more continuously adjustable arc. (b) is false, both work under normal gravity. (c) is false, gravity-scaling still reads button state. (d) is an arbitrary restriction with no mechanical basis.

Test yourself against the 2850-question Game Development bank.

Start interview