Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   collision detection (http://www.alice.org/community/showthread.php?t=1327)

ewg 04-15-2008 07:34 PM

collision detection
 
i've heard that the camera cant go through walls when your controlling it but when i added so i can move it with keys it went right through the walls.

btw, im using WASD to move.

DickBaldwin 04-15-2008 08:04 PM

[quote=ewg;5183]i've heard that the camera cant go through walls when your controlling it but when i added so i can move it with keys it went right through the walls.

btw, im using WASD to move.[/quote]

There are some circumstances where it won't go through a wall but it will sneak through the crack where two walls join. (See additional information at [URL="http://www.alice.org/community/showthread.php?p=4261"]www.alice.org/community/showthread.php?p=4261[/URL])

Is that possibly what you saw?

Dick Baldwin
Free Alice tutorials: [URL]http://www.dickbaldwin.com/tocalice.htm[/URL]
Free programming tutorials: [URL]http://www.dickbaldwin.com/toc.htm[/URL]

ewg 04-15-2008 10:01 PM

1 Attachment(s)
not exactly, i have the camera movement set to WASD and it just goes straight through objects. i know its not smooth moving but i just started alice in school last week, and me and my friends are ambitious on making a basic game or puzzle type thing.

DickBaldwin 04-15-2008 10:14 PM

[quote=ewg;5185]not exactly, i have the camera movement set to WASD and it just goes straight through objects. i know its not smooth moving but i just started alice in school last week, and me and my friends are ambitious on making a basic game or puzzle type thing.[/quote]

If you are really new to Alice, you might want to shy away from collision detection issues until you gain more experience. Many students find collision detection in Alice to be difficult, and it is one of the most frequently discussed topics on the forums. If you go to Google and search for the following keywords, you will find about 180 hits on the Alice forums.

alice "collision detection" site:[url]www.alice.org[/url]

Dick Baldwin
Free Alice tutorials: [url]http://www.dickbaldwin.com/tocalice.htm[/url]
Free programming tutorials: [url]http://www.dickbaldwin.com/toc.htm[/url]

madden 04-15-2008 10:16 PM

try this...
 
try this...
[url]http://www.alice.org/community/showthread.php?t=798[/url]

P.s :mad: :o :D (in that order)

ewg 04-15-2008 10:52 PM

the garden file in that thread, is what i was talking about. when you have the arrow keys move the camera it cant penetrate while WASD penetrates. how would i solve this. i would really appreciate if some one can show be how to make it so the camera can go through say a garden maze.

DrJim 04-16-2008 09:43 AM

Camera Movement Notes
 
1 Attachment(s)
As you note, and the attached example illustrates, the camera behavior [B][I]is different [/I][/B]when you use different events - key control, arrow key control and mouse control. I believe most people would consider this a "feature."

Only using the specific arrow key command will prevent the camera from penetrating walls - and then, as Dick notes, only when there are no gaps in the walls. There is no way I know of to map the arrow key control behavior onto either the key control or the mouse control event statements.

Note that both the arrow key commands and the mouse movement control give forward, backward, turn left and turn right control, while you can set up the keys to give any movement you like.

There is also a command to have the mouse just control camera orientation. This is nice to use to control "looking" while you control movement with keys.

madden 04-16-2008 01:42 PM

[QUOTE=DrJim;5195]As you note, and the attached example illustrates, the camera behavior [B][I]is different [/I][/B]when you use different events - key control, arrow key control and mouse control. I believe most people would consider this a "feature."

Only using the specific arrow key command will prevent the camera from penetrating walls - and then, as Dick notes, only when there are no gaps in the walls. There is no way I know of to map the arrow key control behavior onto either the key control or the mouse control event statements.

Note that both the arrow key commands and the mouse movement control give forward, backward, turn left and turn right control, while you can set up the keys to give any movement you like.

There is also a command to have the mouse just control camera orientation. This is nice to use to control "looking" while you control movement with keys.[/QUOTE]

Yes, I have also found that collision works differently depending on what type of computer you have. I have a few questions for you ewg, if you could reply to them soon that would be great. My first question is (What type of computer do you have like Mac, Dell etc.) My second question is (what commands are you using to control the camera, are you using (When a (key) is typed do (something), or are you using (let the arrow keys move (subject)? If you have a Mac then I have found for there to be lack of collision detection.

Lordcorvin 02-16-2011 05:15 PM

collision problem
 
problem with collision if you move backwards then you can go through anything, what should you do to not let it happen


All times are GMT -5. The time now is 06:57 AM.

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