Hi guys, I am doing a platform game.I followed this topic and decided to pick 'Tile Surround Method" for collision detection (http://www.raywenderlich.com/15230/how-to-make-a-platform-game-like-super-mario-brothers-part-1).But I got some problems with this method:
1.My main character can scale up and scale down based on time,even it can rotate.(at this point,I tried matrix transform to calculate the bounding box after every frame) so it means my size is not fixed and "tile surround method" seems not working right.
2.My main character is a cube (rectangle shape) which would collide with obstacle like rectangle,triangle.So for collision detection,I just used some basic check on it( Rectangle with Rectangle, Triangle and Rectangle).Specially, with triangle and rectangle case, I just find triangle's 3 vertices and calculate its 3 edges and check what if they collide with my main character(a rectangle).
3.I got some problems when I increase main character's move speed.In some case, my collision dectection was passed( I heard about broadphase check but still have no clue on it )
Hope you guys can suggest to me some techniques to research,or some better method.Thanks in advance.