adomas Posted May 1, 2014 Share Posted May 1, 2014 Hello,I started a small sandbox game with Phaser and I have this problem. I can rotate the car, but collision box does not rotate. I don't understand how to rotate both of them :/ I attached the screenshot and code is here: http://pastebin.com/pUh1jd7L How to rotate the collision box together with the sprite? Link to comment Share on other sites More sharing options...
rich Posted May 1, 2014 Share Posted May 1, 2014 Arcade Physics is for AABB (axis aligned) collision only. I.e. the hit boxes don't and can't rotate, that is what keeps it really fast. For the sort of collision you need I would suggest using P2 Physics instead. Link to comment Share on other sites More sharing options...
Recommended Posts