Commit 1f11a13
three.js platformer: fix pushing into box sides, desync coin spin
Ground support now uses the full aabb footprint so it matches the 2d
collision solver. Before, support was lost when the center crossed a
platform edge while the aabbs still overlapped, so the solid collision
gate flipped on in the already-overlapping state where the engine only
applies a gentle push-away that player input could overpower.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent b351960 commit 1f11a13
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
0 commit comments