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 / Endless Track

Author
Message
Ghost Pirate Bob
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location:
Posted: 11th Jul 2004 16:20
I need a straight road that you could theoretically ride down indefinitely

Here's the catch, I need it built out of box segments 320 units long. I need 6 segments... Like... when you get past the first segment, I want it to be deleted and spawn at the end of the line

Any idea anyone?
I've gotten it working with one track in a function...
But I need it in a way where I can plug it in a function and make multiple tracks.

I've got a variable 'bar' to show how many segments I've passed...

I dont know, I'm stumped... any ideas? PLEASE HELP!

Hehehe

GNAAAAAAAAAAAAAR

Me
Doom weaver
20
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 11th Jul 2004 17:00
perhaps if you could work out the orientation of the track at the last position before you need another one to begin, then place the object/matrix directly next to it and with the same orientation. Then you could use a function to smooth the edges of bother matrices into each, assuming you are using a matrix...
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Jul 2004 20:09
have a look at the commands to slide the matrix along. (shift matrix, dont forget to update)

they will allow you to shift a matrix depending ont he data represented.

you could using some math create a infinite track.

in dbc there is an example of this as like the first real example past the simple stuff to achieve this.

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself

Login to post a reply

Server time is: 2025-05-25 01:32:41
Your offset time is: 2025-05-25 01:32:41