Dream Of Sleeping Posted February 19, 2014 Share Posted February 19, 2014 Hi. I'm trying to get the Intersects function to work, and it doesn't. I've now added my own intersects function in my game and it works as expected, which is fine. It's very simple and easy to do myself, but I'm curious as to why the phaser one isn't working. In the docs it says it should return true if two objects intersect but I've looked at the code and it doesn't seem to return anything. It seems to do the calculations and assign them to result, but never returns it. Am I missing something totally obvious? Or was this just a mistake? Link to comment Share on other sites More sharing options...
rich Posted February 19, 2014 Share Posted February 19, 2014 This is updated in the dev branch, but yes it works by assigning the value to the result var rather than returning it. It should actually do both (and now does in dev). Dream Of Sleeping 1 Link to comment Share on other sites More sharing options...
Recommended Posts