Commit 816a80f
committed
If
Body.customSeparateX or customSeparateY is true then the Body will no longer be automatically separated from a **Tilemap** collision or exchange any velocity. The amount of pixels that the Body has intersected the tile is available in Body.overlapX and overlapY, so you can use these values to perform your own separation in your collision callback (phaserjs#992)1 parent 4489a12 commit 816a80f
2 files changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1284 | 1284 | | |
1285 | 1285 | | |
1286 | 1286 | | |
1287 | | - | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
1288 | 1295 | | |
1289 | 1296 | | |
1290 | 1297 | | |
| |||
1333 | 1340 | | |
1334 | 1341 | | |
1335 | 1342 | | |
1336 | | - | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
1337 | 1351 | | |
1338 | 1352 | | |
1339 | 1353 | | |
| |||
1347 | 1361 | | |
1348 | 1362 | | |
1349 | 1363 | | |
1350 | | - | |
1351 | 1364 | | |
1352 | 1365 | | |
1353 | 1366 | | |
| |||
0 commit comments