Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Collisions
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 500
Join Date: Sep 2007
Location: Austin, Texas
Default Collisions - 11-13-2010, 10:05 AM

I'm actually teaching a collision module to my HS students this week.

The first thing you have to consider is that any collision routines must run in parallel to the entire World, and that they must "Infinately" check for collision conditionals. To do so, more threads than myFirstWorld must start when you click the "Start" button.

Another consideration is that every object in a world has a different shape (ie. height, width, depth), and that those properties can change either during the initial setup via sizing, or programatically via methods during execution(ie. a character with arms held out is wider than the same character with arms held to side). This is further complicated by the fact that methods reference the convergence of the 3 axes of an object rather than the outside dimensions.

Start with a multi-thread world, and move on from there(see jpg).
Attached Images
File Type: jpg Collide.jpg (50.4 KB, 84 views)

Last edited by MrMoke; 11-13-2010 at 10:17 AM. Reason: Image too big
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 11-13-2010, 04:06 PM

Quote:
Originally Posted by MrMoke View Post
I'm actually teaching a collision module to my HS students this week.
Your teaching collision detection? Could you tell me whether or not I did my collision correctly, or is there an easier/better way to do it? If you have not seen it yet, look at my maze world and please tell me I did everything correctly or if I left something out, or maybe if I am not seeing the whole picture, and just focusing on one type of collision detection when there is a better way of doing it? Thanks.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
GoGators
Senior Member
 
GoGators's Avatar
 
Status: Offline
Posts: 191
Join Date: Jun 2010
Location: In a house in a city in a state in a continent in a planet in a galaxy
Default 11-14-2010, 02:21 AM

Sorry I will post the tutorials soon but I am very busy.

MrMoke I am very interested to hear more! I will post some tutorials soon and you could tell me if I am doing something wrong or right.
However you do it I am very interested to hear more!


------------------------------------------------------------------------------------------
Signature is under renovation.
  Send a message via Yahoo to GoGators  
Reply With Quote
Old
travis551
Guest
 
Status:
Posts: n/a
Default 11-15-2010, 09:08 AM

yeah your probably right
but its alright
ill try what your maze showed me because i havent tryed anything else to my skate game.
   
Reply With Quote
Old
davidabraham
Guest
 
Status:
Posts: n/a
Default 11-15-2010, 11:39 AM

I am building stuff on second life and I am trying to find out how to script things to be solid.
If you know what to do I would really aappreciateit.


Thanks
   
Reply With Quote
boat game
Old
travis551
Guest
 
Status:
Posts: n/a
Default boat game - 11-23-2010, 08:34 AM

play my boat game and tell me what you think of it plz
Attached Files
File Type: a2w boat.a2w (883.8 KB, 15 views)
   
Reply With Quote
Old
John Smithy
Junior Member
 
Status: Offline
Posts: 5
Join Date: Jun 2011
Default 06-12-2011, 05:32 PM

Thanks Dameria, going to use your collision method for school
   
Reply With Quote
Reply

Tags
game, skate

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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.