Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Share Worlds (http://www.alice.org/community/forumdisplay.php?f=6)
-   -   collision detection (http://www.alice.org/community/showthread.php?t=3806)

Zack Strife 01-23-2010 12:28 PM

collision detection
 
1 Attachment(s)
My method for a relatively simple collision detection.

Veryuhbull 01-23-2010 09:47 PM

Good job!
 
i can't believe no one has done this before.:eek: I tested it and it seems promising.:D 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. :)

Zack Strife 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

x2495iiii 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?

Veryuhbull 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.

x2495iiii 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.

Veryuhbull 01-23-2010 10:17 PM

1 Attachment(s)
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.

Zack Strife 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

x2495iiii 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?

Tro 01-24-2010 11:49 AM

I wana try this out. Tagging this


All times are GMT -5. The time now is 02:45 AM.

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