We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34ed8f0 commit bef0b16Copy full SHA for bef0b16
1 file changed
src/physics/arcade/Body.js
@@ -988,6 +988,7 @@ var Body = new Class({
988
this.overlapX = 0;
989
this.overlapY = 0;
990
991
+ this.snapTo = null;
992
this.embedded = false;
993
this.forcePosition = 0;
994
@@ -2307,7 +2308,7 @@ var Body = new Class({
2307
2308
return this;
2309
}
2310
- if (body2 && !collisionInfo.set)
2311
+ if (body2 && !collisionInfo.set && !this.snapTo)
2312
{
2313
console.log(this.gameObject.name, 'setBlockedUp', body2.bottom);
2314
@@ -2352,7 +2353,7 @@ var Body = new Class({
2352
2353
2354
2355
2356
2357
2358
console.log(this.gameObject.name, 'setBlockedDown', body2.y);
2359
0 commit comments