Alice Community  

Go Back   Alice Community > Alice 2 > Suggestion Box

Reply
 
Thread Tools Display Modes
Age-old collision question
Old
jrrTolkien
Senior Member
 
jrrTolkien's Avatar
 
Status: Offline
Posts: 166
Join Date: Feb 2014
Location: Middle-Earth (Merrimack, NH)
Default 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
   
Reply With Quote
Old
fourbros
Senior Member
 
fourbros's Avatar
 
Status: Offline
Posts: 476
Join Date: Nov 2011
Location: Right Behind You...
Default 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
   
Reply With Quote
Exactly!
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default 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!
   
Reply With Quote
If only...
Old
jrrTolkien
Senior Member
 
jrrTolkien's Avatar
 
Status: Offline
Posts: 166
Join Date: Feb 2014
Location: Middle-Earth (Merrimack, NH)
Unhappy 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
   
Reply With Quote
Old
beachbum111111
Senior Member
 
beachbum111111's Avatar
 
Status: Offline
Posts: 852
Join Date: Feb 2010
Location: e
Default 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"
   
Reply With Quote
Even that doesn't work
Old
jrrTolkien
Senior Member
 
jrrTolkien's Avatar
 
Status: Offline
Posts: 166
Join Date: Feb 2014
Location: Middle-Earth (Merrimack, NH)
Default 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
   
Reply With Quote
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 07-08-2014, 11:41 AM

Quote:
Originally Posted by jrrTolkien View Post
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
   
Reply With Quote
Reply

Thread Tools
Display Modes

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 Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.