How to determine where collision takes place.
I'm trying to figure out how to make my actor behave a certain way when he touches a wall, but I want the behavior to be different based on which side he actually collides with (top, bottom, left, right). How could I do this?
Comments
When overlaps or collides,
change angleHit to vectorToAngle(self.position.x-otherActorX, self.position.Y-otherActorY)
//This should give you an angle in which the collide happened.
Put a rule inside this rule after the change attribute about what angle it hit etc