kodetosuccess / Final-Project

Repository for UCMHS Intro to Programming Final Project
0 stars 0 forks source link

cannonball wont bounce off canon #10

Closed atgao closed 8 years ago

atgao commented 8 years ago

the canonball won't bounce off the canon when it gets near it. a boolean function is being used to see whether or not they touch

atgao commented 8 years ago

the issue was that there wasn't a location declared in the constructor for the canon. it was originally loc = new Pvector (); so the dist() wasn't working