Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FCNPC_SetVehicleTrainSpeed #250

Open
ivybush opened this issue Apr 30, 2021 · 2 comments
Open

FCNPC_SetVehicleTrainSpeed #250

ivybush opened this issue Apr 30, 2021 · 2 comments

Comments

@ivybush
Copy link

ivybush commented Apr 30, 2021

Synced speed is about 0.1925. If value is lower, the train jumps to track points, and with a higher value, it makes returns. I am using tracks.dat as the path, but with custom points are the same. youtu.be/elOv9839Aoo?t=9

@ivybush
Copy link
Author

ivybush commented May 1, 2021

As I understood, the train is teleported point by point by FCNPC_GoByMovePath along with the movement by FCNPC_SetVehicleTrainSpeed. The speed of 1.0 in FCNPC_GoByMovePath is approximately 0.1925 in FCNPC_SetVehicleTrainSpeed. If I set both values correctly, then it works great for a tram. But for a train, this proportion changes when cornering in tunnels roughly doubled. And it is necessary to process these path points additionally.

@ziggi
Copy link
Owner

ziggi commented May 2, 2021

Yeah, some time ago I have tried to make train works good, but i gave up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants