We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've just been doing the cannon from Ex 3.2 and I'm not sure where to go from here, and I'm starting to think I might have approached the whole thing wrong.
I started by making the cannon, and rotating the canvas so that the cannon would be pointing in a roughly 45 degree from the bottom left to the top right.
Then I made it so that a square started at the base of the cannon, and while it's x coordinate was within the domain of the cannon I applied a force to the square that propelled it out of the cannon.
Once the square had left the cannon I applied gravity to the square, that makes it fall towards the floor.
I'm struggling though because I wanted the square to bounce against the far edge of the screen and the bottom of the screen, but I'm not sure how to go about that given the rotations that I created to draw the cannon and that.
So, any guidance appreciated!
here's a link to the code ( I couldn't fit it in)