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.

DarkBASIC Discussion / Please help: Collision detection with camera, and sound bug

Author
Message
Neon Ultra
22
Years of Service
User Offline
Joined: 17th Jan 2003
Location:
Posted: 17th Jan 2003 22:50
Hi.
The tutorials teach you how to do collision detection for third person, but not how to do it first person (ie. using the camera as a collision object). How do I sense if the camera is on collision with an object?
Also whenever I try to play a music or sound file, it says Error unable to load Synthcore.exe or something like that.
I would be grateful for your help.
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 18th Jan 2003 00:22
OK, for the camera, I suggets making a box for your object (trust me) and position the camera always above that box. Then, just code collision for the box, thus if the box cant go thru a wall, neither can the camera.

Dunno about your error....

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
Hamish McHaggis
22
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 18th Jan 2003 00:36
With static collision you can just define the area around the camera in the 'get static collision hit()' command.

Yum! Yum! Yum! Yum!
Neon Ultra
22
Years of Service
User Offline
Joined: 17th Jan 2003
Location:
Posted: 18th Jan 2003 15:39
How would I do this RPGamer?
And Hamish, the program says that there is no such command.

hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 18th Jan 2003 18:27
the static collision command is used for static objects, i.e. non-movable! so you can't really use it for the camera. The method i use is the same as RPGamer, i have an object follow the camera, the object having it's own collision box. I detect for a collision btw the follower object and the evironment objects, if one occurs the i reposition the follower object and the camera in the same position.

your birth was a blessing, sent to live and die on earth as a lesson, we each have a star all you have to do is find it, once you do, everyone who sees it will be blinded - DMX
Furiousuk
22
Years of Service
User Offline
Joined: 10th Jan 2003
Location: United Kingdom
Posted: 18th Jan 2003 20:23
I do the same, using a sphere as my collision object.
I create a sphere and scale it appropriately for the world and then place the camera inside it. By locking on the sphere object it is always moved around with the camera. By using the 'set object' command i make sure that the sphere object's backfaces are not drawn and therefore not seen because the camera is inside the sphere.

Then use 'set object collision to spheres' and whenever the sphere object collides with another object dont move it in that direction (this is the same principle as the tutorial).

Login to post a reply

Server time is: 2025-05-12 14:28:22
Your offset time is: 2025-05-12 14:28:22