View Single Post
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 11-15-2016, 12:20 AM

Quote:
Originally Posted by lucyrn99 View Post
Hi Mr. Moke,

I apologize.. I should have clarified that I wanted assistance just with the score-keeping part of the game, not with any of the other parts.

I had attached my (very messy and not audience-ready) code with the intent that you'd get a general sense of the scoring that needed to be tallied.

Thank you for your feedback. I'm still not seeing the score increment as I would expect it to, when the torus is close to the cone.
I understand your comment about the center of the cone being its middle, therefore I've allowed some extra cushion (.5 meters' worth) to compensate for that. However, it still doesn't work properly to add 1 to the score when the torus and cone are within close proximity.

Please see attached (cleaned-up version). Thank you for your interest and help!
Suggestion:
Try using "print" (along bottom with loop, do in order etc) to print out the distance between the torus and the cone.


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote