AI game generator · One-way platforms

Why Does My Player Fall Through One-Way Platforms?

Check the accepted crossing direction and the collision pair

A one-way platform normally blocks an eligible approach from its intended face while allowing passage from the other side. If your player falls through it, first verify that the player and platform can collide, then record the player's previous and current position relative to the platform face. A wrong collision layer, an unexpected spawn overlap, or crossing from the ignored side can look like a broken platform but needs a different fix.

Do not begin by making every collider solid. Keep one short test platform, one player shape, and the same movement input. The key question is whether the pair produces a contact at the moment the player's feet cross the platform's blocking face.

A supplied geometry model compares a downward crossing from above, an upward passage from below, and a missing collision-pair configuration.
Supplied-coordinate crossing model. The arrows show intended direction filtering, not a recorded engine result.

Separate three failure modes

Direction filtering: the platform receives the player, but the current approach is permitted through. A one-way surface is intentionally asymmetric; a jump upward through its underside may be correct behavior.

No collision pair: the player and platform never reach the collision solver together. Check collision layers and masks, disabled shapes, and whether the visible platform actually has the expected collision shape. Changing one-way direction cannot repair a pair that is excluded entirely.

Crossing-state ambiguity: the player begins already overlapping the platform, moves a large distance in one update, or reaches the surface while its shape is being enabled. A one-way rule often depends on which side the body came from and how it crosses the face. Reproduce the approach from a known position before changing tolerance values.

Godot's CollisionObject2D reference exposes one-way collision controls per shape owner, including a direction and a margin. That makes the relevant shape configuration worth inspecting in a Godot project. It does not show that a particular AI game generator uses Godot, nor does it diagnose this symptom in another engine.

Trace one crossing with supplied coordinates

We wrote a small Node model to make the directional check explicit. The platform's top is at y equals 100. The player is 20 units tall, and its vertical position is represented by the bottom of its collision box. The platform accepts a downward crossing only when the previous bottom is at or above the top and the current bottom reaches or passes it. This is an illustrative rule, not a universal engine algorithm.

For a downward move from bottom 70 to bottom 110, the previous position is above 100 and the next is below it. The crossing condition is true, so the model reports a block at the face. For an upward move from 130 to 70, the body travels through the same y coordinate in reverse; the condition is false, so the model allows passage. If the collision pair is disabled, even the first crossing produces no contact regardless of direction.

In this coordinate convention, y increases downward, so a downward crossing has a larger current bottom value. Checking both endpoints matters: comparing only the current position to y=100 would not tell whether the player arrived from above or below. A real movement system may instead use its own contact tests, tolerances, and shape transforms. Treat these four rows as a debugging worksheet for recorded bounds, not a substitute for your engine's collision rules.

Supplied casePrevious → current bottomPair enabledModel result
Fall from above70 → 110YesBlock at y=100
Jump from below130 → 70YesPass upward
Fall from above70 → 110NoNo contact
Start already overlapping105 → 110YesNo fresh top crossing

The model tested the crossing predicate, reverse travel, disabled-pair behavior, and an already-overlapping start. It contains no collision solver, gravity, acceleration, shape margins, input sampling, or engine integration. The last row means only that this particular rule does not see a fresh crossing from above; a real engine may resolve an overlap in its own documented way.

A useful observation log needs just four values: the platform face coordinate, the player's previous and current collision bounds, the movement direction, and whether the collision pair is enabled. Capture the same values for a successful approach. The first difference narrows the question without changing unrelated jump or gravity settings.

Use a short, repeatable test

  1. Duplicate one platform and player into a safe scene. Keep their collision shapes visible and record the platform face.
  2. Start the player clearly above the face, fall through it, and record the previous and current bounds plus contact result.
  3. Repeat from below while moving upward. Confirm that passing through is intentional for this platform.
  4. Check that the player and platform collision layers and masks include each other, and that neither shape is disabled.
  5. Move the spawn point away from overlap, then rerun the same downward crossing in the exported build.

Change one setting at a time. If layer and mask checks pass but the crossing still fails, inspect the one-way direction and margin using the documentation for your engine and version. Avoid increasing the margin blindly: it can change how close the body must be to the face and may hide a spawn or movement problem.

Ask the generator to diagnose one platform

Keep the player shape, jump, gravity, speed, and platform geometry unchanged. In a copy of this scene, show the collision shapes and verify that the player and platform collision layers and masks allow contact. Record the platform face and the player's previous and current collision bounds for one downward approach from above and one upward approach from below. Check the engine's documented one-way direction and margin for this shape. Change only the relevant setting, then repeat both approaches in the exported build. Do not make all platforms solid.

Questions to check before changing physics

Should a one-way platform block a jump from underneath?

Usually the purpose is to permit passage from the ignored side, often the underside. Confirm the intended game rule before changing its direction or replacing it with a two-way collider.

What if the player falls through only at high speed?

Record the movement step and compare it with the platform face. A large step can skip a crossing check in some movement systems. Follow the separate wall-tunneling checklist and use the collision-aware method documented by your engine.

What if the player also falls through ordinary floors?

That points toward a broader collision-pair, shape, or movement issue. Check the collider-boundary guide and keep the one-way surface as a separate test case.

Watch the one-way platform crossing explanation alongside this checklist.

AI-assisted research, writing and original diagrams. The coordinate comparison is a supplied-rule geometry model, not a test of Godot or a commercial game generator.