You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello again 👋
Whenever my player is on a wall (Say, facing vertically) and i move into the wall and move down or up at the same time, the player gets "locked" into place. Also, the wall entities have a slight gap on one side only.
The text was updated successfully, but these errors were encountered:
.bind('Move',function(evt){// after enemy movedvarhitDatas,hitData;if((hitDatas=this.hit('Wall'))){// check for collision with wallshitData=hitDatas[0];// resolving collision for just one colliderif(hitData.type==='SAT'){// SAT, advanced collision resolution// move player back by amount of overlapthis.x-=hitData.overlap*hitData.nx;this.y-=hitData.overlap*hitData.ny;}else{// MBR, simple collision resolution// move player to previous positionthis.x=evt._x;this.y=evt._y;}}})
Hello again 👋
Whenever my player is on a wall (Say, facing vertically) and i move into the wall and move down or up at the same time, the player gets "locked" into place. Also, the wall entities have a slight gap on one side only.
The text was updated successfully, but these errors were encountered: