Alice Community stuff doesnt collide!!!

 stuff doesnt collide!!!
 thewhiterabbit. Guest   Status: Posts: n/a stuff doesnt collide!!! - 11-06-2006, 07:52 AM is there some simple way of makinging things 'collide'?
 456 Guest   Status: Posts: n/a 11-06-2006, 03:01 PM I'm wondering this myself. My son would like his cars not to drive through one another. I'm a developer, so if I need to change code, I might be able to do that if someone had an idea of where to look and what to do. Last edited by 456; 11-06-2006 at 03:10 PM.
 roofy Guest   Status: Posts: n/a 11-06-2006, 09:06 PM Well, the simplest way is to check one object's distance to another. However, the problem with this is that Alice checks the distance between 2 objects by the objects pivot point and it is not always at the center of an object. Also, what baffles me even more is how some of the students at Carnige University were capable of programming the game below with Alice. http://www.etc.cmu.edu/projects/bvwW...ockin_live.wmv
 Yasjalnadie Guest   Status: Posts: n/a 11-21-2006, 08:43 AM Well, what you could do is the same I did, just get the object's on the same x-axis, when they meet move then object's part's in a way as tho they did hit, do you see what I'm saying? I did the same thing, I made two people run and hit each other in mid stride, its pretty simple, just takes time. Btw, when I get home from school I'll post what I wrote. Cheers, Yasjalnadie
 Alice of the future!
 Link Guest   Status: Posts: n/a Alice of the future! - 11-29-2006, 08:53 AM Perhaps this is something for the developers to think about in alice 3.0 yes?
 Hmm
PogoDaMonkey
Guest

Status:
Posts: n/a
Hmm - 11-29-2006, 12:37 PM

They programmer that in Alice!? Wow...forget collisions, the meshes and the way the had thing such as the dinosaurs tail move up and down without any clipping erros with the rest of the tail is amazing...let alone that it probably took a while for two people to do all this (programming wise). Carnegie Mellon is in Virginia, right? Might have to see about visiting...

Oh, and one way I have figured out to stop things from clipping is to make a "sphere of influence," creating a sphere that covers the entire object, then making it invisible, making the object in question its vehicle, and using it as a reference point for that object. Much easier for square objects, or verticle ones, rather than shapes like rectangles. Then use the "If (object 1's sphere) is within X distance of (object 2's sphere), do (crash? move back?)

Heres one example I found in the forums earlier, modified a little so it does more than just show "HIT----"
Attached Files
 TwoCollidingBalls.a2w (175.0 KB, 398 views)

 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