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 / Rotate Matrix

Author
Message
Rich W
21
Years of Service
User Offline
Joined: 12th Feb 2004
Location:
Posted: 12th Feb 2004 22:42
Hey,
Im attempting to make a skiing level and am having trouble making the matrix into a hill. My plan was to randomize the matrix and then tilt it at an angle to form the hill. However, i cant seem to find the command or script to do this.
Can anyone help?

Cheers,
RIch
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 12th Feb 2004 22:46
there isn't a rotate matrix command...


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 13th Feb 2004 05:14 Edited at: 13th Feb 2004 05:17
You have to do it manually... Something like;



But, I'm not too sure if that'll work, as I cannot test it atm.

Hope I Helped...
Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
AluminumPork
21
Years of Service
User Offline
Joined: 28th Oct 2003
Location: Duluth, MN, USA
Posted: 13th Feb 2004 06:17
yeah, that snippet looks like it should work. It actually gave me some ideas.

P4 2.4Ghz HT, 512MB RAM, ATI Radeon 9600 128MB, 19" Viewsonic, 80GB HD

Crappy Coder
21
Years of Service
User Offline
Joined: 16th Sep 2003
Location: Uk, Bath
Posted: 14th Feb 2004 03:22
or you could do it using a sin or cos curve which is what i have done, you just add on a random number to an angle number each loop and make the height gradually decrease... it gives some very nice slopes for a snowboarder level
Rich W
21
Years of Service
User Offline
Joined: 12th Feb 2004
Location:
Posted: 15th Feb 2004 12:34
k cheers guys, im gonna try both of those methods n see which looks best.

Thanks 4 the help,
Rich

Login to post a reply

Server time is: 2025-05-22 18:55:12
Your offset time is: 2025-05-22 18:55:12