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.

Newcomers DBPro Corner / Camera collision

Author
Message
Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 23rd Aug 2006 21:25
is there any way of checking for collision between the camera and the object. im starting an attempt at a first person game but this is a major obsticle. any help would be apresiated
Gamedesign er20
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: The one place you would never look...
Posted: 23rd Aug 2006 22:43
Well you could always check collsion between object to object by placing an object like a gun in front of the camera.

Cocacola and Pepsi aren't that differnt. Deal with it.
Zergei
19
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 23rd Aug 2006 23:30
I'm using sparkys collision plugin, and all i do is a sphere collision check on the camera's x,y,z , and use the usual collision setup for it.

Further on my stuff at...
Tom J
19
Years of Service
User Offline
Joined: 4th Aug 2005
Location: Essex, England
Posted: 23rd Aug 2006 23:59
Stick your camera on a simple object like a sphere and use object collision commands for good looking 'Camera Collision'.



Let the games begin.
Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 24th Aug 2006 11:55
yay made it work, it ends the program on collision. thanks all for you r help!!!!!
Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 24th Aug 2006 19:54
kk one more thing
i have slight problem with collisions on my program. one wall works but the other does not. can you tell me why and correct my code:::

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 24th Aug 2006 23:12 Edited at: 24th Aug 2006 23:13
Ummm... it works for me... Oh, and have a look at the SET CAMERA TO OBJECT ORIENTATION command.

Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 25th Aug 2006 15:44
weared it wont work for me at all. only one box works
Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 25th Aug 2006 17:38
yay made it work
Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 25th Aug 2006 22:41 Edited at: 25th Aug 2006 22:42
one last problem i want a gun to be the main objective for my level however i cant see it on the game! can some one tell me whats going on?

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 26th Aug 2006 01:17
Your positioning is wrong Try positioning the object at 50,50,200 (where the camera is) and then work from there. Currently you have positioned the object out of your maze.

Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 26th Aug 2006 11:54
kk i did that. but i still cant see it.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 26th Aug 2006 17:08
Whoops meant 50,0,200. Anyway, try that, and if it still doesn't work, change the object to a sphere and see if you can see it. If you can, then change it back to a gun. If you can't see the gun then your model needs to be re-sized using the SCALE OBJECT command.

Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 26th Aug 2006 18:10
nope still cant see it
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 27th Aug 2006 01:31 Edited at: 27th Aug 2006 01:31
Well you CAN see this:


Work from there.

Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 27th Aug 2006 11:55
well mabie its just my pc but im getting:
runtime error at line 176 object does not exist
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 27th Aug 2006 18:30
No idea why that happens. Wait for another response.

Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 27th Aug 2006 18:44
kk

thnx for your help

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 27th Aug 2006 23:33
No prob?

Login to post a reply

Server time is: 2024-11-26 11:35:12
Your offset time is: 2024-11-26 11:35:12