so i have this onCollision code and it includes object:applyForce code…
CODE WAS REMOVED
So when the circle collides with the box ; it pushes the box …
But im not 100% sure on how it works and what it means…
CODE WAS REMOVED
This code above is the one i need help understanding…
ill tell you what i do know…
CODE WAS REMOVED
in the code above the event.other.x and the event.other.y prevents the box from spinning freely…
What i dont know is why in this code below
CODE WAS REMOVED
why is the event.other subtracted from self.x and self.y…
Thanks for anyone who helps!