We are about to switch to a new forum software. Until then we have removed the registration on this forum.
hey! im new to processing and i have a question.... how can i make a ball bounce when collides with a line? not losing the gravity factor of course.. thanks in advance!
the code is here:
Answers
You'll get a better response if you format your code. Here's how:
http://forum.processing.org/two/discussion/8045/how-to-format-code-and-text
Also we don't have your Ball class. That's sort of important for us to have is we're going to try running this to see what your problem is.
thank you guys ok so this is the main:
and this is the class ball
code: 2 empty lines before and after
select entire code with mouse
hit ctrl-o
OR the small
C
in the small command bar