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 / Need help making ramp for camera

Author
Message
Trev
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Canada, Ontario
Posted: 3rd Mar 2004 23:15
Hello i'm using DBPro and I cant figure out how to make a ramp for my camera to go up like stairs. Plz help

Trevor Somerville
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 4th Mar 2004 00:52
Search for step or stair code in the forums and in the code base. Programming-wise, there is little difference between a ramp or stairs. Alternately, you can try out the Nuclear Glory Collison DLL and the demo code there. In one of my racing games I used the NGC DLL and had no problem moving over hills and ramps.
--
TAZ

mm0zct
20
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 4th Mar 2004 01:41 Edited at: 4th Mar 2004 01:42
this all depends on how you are moving the camera, if you want to do it simply then movement should be:
(as seudo code)
get x angle of cam as a variable
set xrotation tto point just up a bit
move cam forwards
set camera back to origional rotation
use a simple (or complex) gravity to pull the object back to the ground
loop

like so:


you will of course need other movement to turn left and right etc but this is what you wanted and i hope you get the idea

http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.

Login to post a reply

Server time is: 2024-09-22 00:39:09
Your offset time is: 2024-09-22 00:39:09