Now, I know that there are some really good 2d rigid body physics scenarios out there, but that's not what I'm trying to achieve really (though I do hope that I will eventually be able to understand them :D). I just am trying to make it so that my actor "Character" cannot pass through the actor "PlainRock".
I have already got the collision detection working with getOneIntersectingObject, but am wondering how I can prevent the character from moving through. I am going to try coding something along the lines of "if the player's right is to the right of the rock's left, cancel the player's move by moving the player left." But that seems like it might not behave smoothly, or will just be very tedious to code, is there a more efficient way to do this? If not, do you think this will work no matter where the rock is?
