Lou,
You could try to embedded a 1 x 1 object in the "blob" and test if that overlaps. Another would be to check the distance of the blob from the center of the pie using the "distance to" in the observation category. Of course you would be change the meaning of hit. Also you can check out Yoshiki's Monte Carlo Pi http://www.squeakland.org/launcher/?http://www.squeakland.org/content/showcase/everyone/accounts/yoshiki/MonteCarlo%20Pi.004.prusing kedama (which is a completely different way of doing it and would not fit your pizza sauce method of explanation, but it is very well done and has a nice explanation.
Stephen
On Tue, Sep 28, 2010 at 5:29 PM, Louis LaBrunda Lou@labrunda.info wrote:
Hi Stephen and Bert,
Thank you both for all the help. I still had some problems after fixing the rotation center of the blob of sauce. I have had a lot of abends when playing with the project, so I decided to start over with a clean project. That seems to have solved all the remaining odd behavior.
I am using "overlaps" to tell if the blob has landed on the pizza. This works well but I think it over counts the hits as it seems to be true if any part of the blob is over the pizza. That results in the value of Pi being too large.
I could shrink the pizza a little compared to the size of the box but that seems like cheating.
I could shrink the size of the blob and expand it after the test to see if it overlaps the pizza.
Any suggestions are greatly appreciated.
Thanks again, Lou
Louis LaBrunda SkypeMe callto://PhotonDemon mailto:Lou@LaBrunda.Info http://www.LaBrunda.Info
squeakland mailing list squeakland@squeakland.org http://lists.squeakland.org/mailman/listinfo/squeakland