Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / how can i make a collision in camera to a object? with conditions?

Author
Message
pspurp
14
Years of Service
User Offline
Joined: 13th Feb 2010
Location: at your kitchen eating....
Posted: 13th Feb 2010 23:10
the 100 is a "taxi.x" file..while the 0 is my camera..



please help...

i'm just a noob...
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 14th Feb 2010 13:42
simple way: make a box, or a plain, position it in the camera, and check for collision between it and the object:


pspurp
14
Years of Service
User Offline
Joined: 13th Feb 2010
Location: at your kitchen eating....
Posted: 14th Feb 2010 15:35
but what if my camera is moving?? will i lock the dummy box on the camera like this???



i lock the dummy box on the camera so that the collision will detect it. am i right????

please correct me if i'm wrong...



i'm just a noob...
pspurp
14
Years of Service
User Offline
Joined: 13th Feb 2010
Location: at your kitchen eating....
Posted: 15th Feb 2010 08:45
it works..thank you for the help..

i'm just a noob...
pspurp
14
Years of Service
User Offline
Joined: 13th Feb 2010
Location: at your kitchen eating....
Posted: 15th Feb 2010 17:36
another thing..how can i use this code without going through the object??just like a car hitting the wall..the car cant go through the wall right??

please how can i make a condition like that??

please help..

thanks..

pspurp..

i'm just a noob...

Login to post a reply

Server time is: 2024-11-20 03:37:56
Your offset time is: 2024-11-20 03:37:56