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 / running over hills in magicworld

Author
Message
DaedalusX
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 6th Jun 2004 21:08
how do u do this? its really starting to annoy
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 6th Jun 2004 21:18 Edited at: 9th Jun 2004 23:50
Get a working example of importing the matrix into DB, there's an example that comes with MW

Position your matrix at 0,0,0 (it tends to get moved around)

Look at the moving over matrix example that came in the help files

Remove the code that creates the matrix in the help example, and insert the code that imports the matrix from a .mwdb file into the help example

(You might want just to) Have a look at the main loop code that comes in the help example, and work out how it works.

Here's the theory:

- Some code for moving the camera. The bit that involes newxvalue() and newzvalue()
- Some code then for working out how high the ground is at the camera's position
- Some code that then position the camera at that height, plus a bit so it gives the impression the person walking is higher than ground level.

Two strings walk into a bar. I'll have a pint says the first$%ASLDJ09920D"$"$D. Excuse my friend says the second, he isn't null terminated.
Hop a long
21
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 9th Jun 2004 01:13
David T has said just about everything there is to say. If you want to see a short example of code that sums it up:
http://www.geocities.com/hifin2003/m-w-walk-about.html

Login to post a reply

Server time is: 2025-05-25 04:02:41
Your offset time is: 2025-05-25 04:02:41