swissnetizen Posted April 17, 2016 Share Posted April 17, 2016 (http://g.recordit.co/o5HlkT1d5S.gif) Hi, so my setup involves two hills, where the player is rotated to match the slope angle. The first hill rotates the player to an angle of -45° and the second rotates it to 45°. The problem is that once the second rotates the player, the player can just fall through the bodies. My code for the hills is almost identical. (have a different triangle and angle). I think this might be a bug in p2. Any thoughts? EDIT: I've added a second example: http://g.recordit.co/FLgBsRxbeI.gif In this example we can see that the sprites will slide down the first hill, but upon touching the second they will fall through the wold. Link to comment Share on other sites More sharing options...
swissnetizen Posted April 17, 2016 Author Share Posted April 17, 2016 I've found a work around; instead of setting the slope to -45 I set it to 2pi - 7×-0.7853981633974483 (≈-1.502212856217862) which mostly works, but can still be glitched out: http://g.recordit.co/juY6h6aUkT.gif Does anyone know why this works? Link to comment Share on other sites More sharing options...
Recommended Posts