badjceo Posted May 3, 2014 Share Posted May 3, 2014 Hi all, Is there a way to know if a body will collide with the tilesmap? Ex: function willCollide(positionX, posistionY){....} Obs: I am using P2 physics system Thanks Link to comment Share on other sites More sharing options...
Heppell08 Posted May 3, 2014 Share Posted May 3, 2014 This is kind of an open question and maybe more information may be needed.Do you want to know when the player hits a certain tile? If so then look at tile functions. Now if you are wanting a very specific part of the map then maybe mapping the whole X/Y and hard coding the position may be a way forward too but like I say, the question is pretty open. Link to comment Share on other sites More sharing options...
badjceo Posted May 5, 2014 Author Share Posted May 5, 2014 Thanks Heppell08, I will look the tile functions Link to comment Share on other sites More sharing options...
Recommended Posts