Jump to content

an own rail system


Jusonex

Recommended Posts

Hey guys,

i want to add new rails to the default GTA map, but for this, i need my own rail system, but I'm not sure how to begin.

The calculation of the direction isn't the problem, but how to move the train (realistic) upon the rails.

What functions are needed?

Has anyone got experiences in this?

Edited by Guest
Link to comment

I had made my own tram system to use both tram lines in SF and move the trams server-side. To keep the tram always on the rail and synced, I used element data to store the position (one number, "progress" of the tram from start to the end). This data (plus the time since the last progress update) was used onClientPreRender to linearly interpolate the position between two nodes and put the tram there, so it was moving at the same speed, no matter what the FPS was.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...