since i discussed this topic in at least 2 other threads more or less "off topic" i thought i would start this one to collect all ideas and approaches to this problem. i created 3 possible solutions at this time but all of them have their obstacles example 1: http://test.xapient.net/phaser/ALL/moving-jumpthrough-platform-1.html in this example i use the postbroadphase callback to determine the velocity of the player and decide not to collide if the player is moving upwards to the platform
here is the code.. just in case my server goes down function onPresolve(presolve){ for (var i = 0; i < presolve.contactEquations.length; i++) { c = presolve.contactEquations[i] f = presolve.frictionEquations[i]; if (c.bodyA.parent.sprite && c.bodyA.parent.sprite.name === 'mario'){ //define here who is allowed to jump through var yAxis = p2.vec2.fromValues(0, 1); var y = p2.vec2.dot(c.normalA, yAxis); if (c.bodyB.parent.sp