Alice Community Age-old collision question

 Age-old collision question
 jrrTolkien Senior Member     Status: Offline Posts: 166 Join Date: Feb 2014 Location: Middle-Earth (Merrimack, NH) Age-old collision question - 06-26-2014, 10:03 PM I know that everyone wants this, but do you think it's at all likely that there will ever be collision detection in Alice? -Jrr Arwen: “I would rather share one lifetime with you than face all the Ages of this world alone.” -April Signature
 fourbros Senior Member     Status: Offline Posts: 476 Join Date: Nov 2011 Location: Right Behind You... 06-27-2014, 08:24 PM I hope so. I really hope so. I REALLY REALLY hope so. But seriously, I don't think that there ever will be. And isn't making the collision detection yourself part of the fun? My avatar is from the anime "Hyouka"....... You've probably never seen it, much less heard of it..... You should watch it........ print("Hello World") This is python code. Lakers > Clippers Vikings > Packers Cardinals > Brewers/Pirates/Cubs/Reds
 Exactly!
 MrMoke Senior Member     Status: Offline Posts: 501 Join Date: Sep 2007 Location: Austin, Texas Exactly! - 06-28-2014, 10:04 AM It's always been the best challenge for me, and also gives a deeper understanding of how important the center of objects are when figuring out the distances and directions of the bounce methods. It's always better to BE a programmer, than ask one to do something for you!
 If only...
 jrrTolkien Senior Member     Status: Offline Posts: 166 Join Date: Feb 2014 Location: Middle-Earth (Merrimack, NH) If only... - 07-03-2014, 11:44 AM Well yeah, but that's HARDER. Anyway, Alice itself doesn't allow to make proper collision detection. The best you can really do is "if object is within threshold of" and that doesn't work with flat or square objects. And of course, I currently know hardly anything about Java, or I'd just try to edit the code itself. That's my next goal. To learn more Java. -jrr Arwen: “I would rather share one lifetime with you than face all the Ages of this world alone.” -April Signature
 beachbum111111 Senior Member     Status: Offline Posts: 852 Join Date: Feb 2010 Location: under your bed 07-03-2014, 03:37 PM I know if you make arrow keys control the camera it gives the camera real collision detection. It would be nice if this option wasn't so limited though. "Don't lead me into temptation I can find it myself"
 Even that doesn't work
 jrrTolkien Senior Member     Status: Offline Posts: 166 Join Date: Feb 2014 Location: Middle-Earth (Merrimack, NH) Even that doesn't work - 07-05-2014, 03:29 PM Yeah I noticed that, but if you move it into a corner, you can go through it. Arwen: “I would rather share one lifetime with you than face all the Ages of this world alone.” -April Signature
chickentree
Super Moderator

Status: Offline
Posts: 249
Join Date: Dec 2012
Location: Frosno, Ca
07-08-2014, 11:41 AM

Quote:
 Originally Posted by jrrTolkien Well yeah, but that's HARDER. Anyway, Alice itself doesn't allow to make proper collision detection. The best you can really do is "if object is within threshold of" and that doesn't work with flat or square objects. And of course, I currently know hardly anything about Java, or I'd just try to edit the code itself. That's my next goal. To learn more Java. -jrr
I've had some luck with using a second object. For instance, If I have an aircraft carrier to land on, I might create a half cylinder, align its flat side to the carrier deck and set it's vehicle to the carrier. Then, since the half cylinder is upside down, check if whatever is landing is below the half cylinder ( that is the same as above the carrier's flight deck.)
Its not elegant but it works.

Mark

Mark Henwood
mhenwood@ieee.org

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge