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 / I´m having problems with camera collision. Can anyone help?

Author
Message
MiR
22
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 5th Aug 2003 19:47
I´m trying to make a camera that stops against a wall but stays at the same height (unlike the "set camera to follow" comand that stops the camera agaist a wall but lowers it to the character´s feet).
The code I´ve written goes through the wall if it gets a certain distance away from the wall. Does anyone know why and how to fix it?
John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 5th Aug 2003 20:48
I would use a dummy object for collision.

RPGamer

Current Project: Eternal Destiny
Porting all files to my new computer
MiR
22
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 5th Aug 2003 21:02
Sorry I´m a bit of a newbie. Could you tell me what a dummy object is?
Thanks
John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 5th Aug 2003 22:21
Like a box below the camera. Just keep the camera above that box, and code collision for the box, that way, if the box doesnt go through something, the camera wont.

RPGamer

Current Project: Eternal Destiny
Porting all files to my new computer
MiR
22
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 5th Aug 2003 23:10
Ok I´ll try that.

Thanx
MiR
22
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 5th Aug 2003 23:16
Wait a minute. I´ve just checked my code. I already do use a dummy!
Object 10 is the dummy. So my code should work...But it doesn´t.
Help me

Login to post a reply

Server time is: 2026-07-07 03:46:28
Your offset time is: 2026-07-07 03:46:28