Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

Reply
 
Thread Tools Display Modes
collision detection
Old
Zack Strife
Senior Member
 
Zack Strife's Avatar
 
Status: Offline
Posts: 133
Join Date: Dec 2009
Location: U.S.
Default collision detection - 01-23-2010, 12:28 PM

My method for a relatively simple collision detection.
Attached Files
File Type: a2w collision detection.a2w (193.5 KB, 179 views)


ファイナルファンターVII
   
Reply With Quote
Good job!
Old
Veryuhbull
Guest
 
Status:
Posts: n/a
Smile Good job! - 01-23-2010, 09:47 PM

i can't believe no one has done this before. I tested it and it seems promising. I checked your code and would like to see it tested with more objects in the world. (EDIT:currently testing myself and it isn't working the same. i'll keep working on it.) I'll be using this ethod from now on if is continues to work so well. Smooth and unbuggy just how i like it. Major props.

Last edited by Veryuhbull; 01-23-2010 at 09:52 PM.
   
Reply With Quote
Old
Zack Strife
Senior Member
 
Zack Strife's Avatar
 
Status: Offline
Posts: 133
Join Date: Dec 2009
Location: U.S.
Default 01-23-2010, 09:58 PM

some things you have to do is if your doing the check "is in front of" or something, are, 1. put as seen by world or camera or whatever your using, and 2. it won't work with the camera directly so you have to add another object and orien and vehicle it to the camera and run the check with that


ファイナルファンターVII
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 01-23-2010, 09:59 PM

I agree, this is very nice work. Do you think you could apply your logic to a house or a person?


(')>
   
Reply With Quote
Old
Veryuhbull
Guest
 
Status:
Posts: n/a
Default 01-23-2010, 10:00 PM

Yeah i know. I tried this before and never had this good of results. i was building on your world and added another cylinder and dublicated the code and replace the item name from cylinder to cylinder2. it got glitchy. like what X said, if this can transfer to other stuff that would be REALLY good. I would think the code would need to be customized for every object due to proportions.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 01-23-2010, 10:13 PM

Probably, which is why no one has been able to make a concise, yet functional collision detection engine yet.


(')>
   
Reply With Quote
Old
Veryuhbull
Guest
 
Status:
Posts: n/a
Default 01-23-2010, 10:17 PM

More testing reveals that the original works well because of a balenced equation and envelope of precision. Hard to replicate . I added a second object and got the coding to get close to original condition. But going straight throuhg the middle of an object still happens.
Attached Files
File Type: a2w collision detection1.01.a2w (215.8 KB, 14 views)
   
Reply With Quote
Old
Zack Strife
Senior Member
 
Zack Strife's Avatar
 
Status: Offline
Posts: 133
Join Date: Dec 2009
Location: U.S.
Default 01-24-2010, 07:32 AM

That's weird, the only glitch I've found was if you hit it just right than it will just stop, not go to the right or the left


ファイナルファンターVII
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 01-24-2010, 07:38 AM

So your system is based off of the proportions of the object? Is there any way we could replace the object with an object variable and the proportions with size functions?


(')>
   
Reply With Quote
Old
Tro
Guest
 
Status:
Posts: n/a
Default 01-24-2010, 11:49 AM

I wana try this out. Tagging this
   
Reply With Quote
Reply

Tags
collision detection


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.