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 / 3D camera question

Author
Message
husky
21
Years of Service
User Offline
Joined: 13th Nov 2003
Location:
Posted: 11th Dec 2003 21:55
I'm learning DBC. I'm making a demo for driving on a matrix with extreme height changes.I have the movement working. I even have the car following the matrix using the limb rotate.Here is my problem: My camera keeps passing through the matrix. How do you fix the camera above and behind the object AND not allow it to pass through the matrix?
Hell IVIonkey
22
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 12th Dec 2003 02:15
Here's some psuedo-code to help out a bit. It will keep the camera a minimum of 1 unit above the ground.



husky
21
Years of Service
User Offline
Joined: 13th Nov 2003
Location:
Posted: 12th Dec 2003 20:10
Hell IVIonkey thank you. I tried it and it worked. Now I have what I need to finish my demo.
Hell IVIonkey
22
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 13th Dec 2003 08:16
Glad to hear it.

Login to post a reply

Server time is: 2025-05-22 03:48:07
Your offset time is: 2025-05-22 03:48:07