what if you predicted the orientation wrong initially?
How could it be predicted incorrectly?
There are only 16 correct orientations, and we know for sure which one of them was selected by the car driver.
While the car driver is changing car orientation manually, the mod stops modifying the ...
Search found 6 matches
- Sat Dec 20, 2025 6:30 am
- Forum: Mods
- Topic: [MOD 0.17] VehicleSnap
- Replies: 90
- Views: 62513
- Fri Dec 19, 2025 9:13 pm
- Forum: Mods
- Topic: [MOD 0.17] VehicleSnap
- Replies: 90
- Views: 62513
Re: [MOD 0.17] VehicleSnap
I have fixed the problem, see my patch on github. But again, it's hard-to-understand code.
The idea is following: at the moment when car orientation get snapped, we remember the trajectory (the "ray") which the car must follow in the future.
The ray is just 3 numbers: start_x, start_y and ...
The idea is following: at the moment when car orientation get snapped, we remember the trajectory (the "ray") which the car must follow in the future.
The ray is just 3 numbers: start_x, start_y and ...
- Thu Dec 18, 2025 5:39 pm
- Forum: Mods
- Topic: [MOD 0.17] VehicleSnap
- Replies: 90
- Views: 62513
Re: [MOD 0.17] VehicleSnap
Indeed, in "Sandbox" mode, after driving forward for 10 km I found myself 10 m away from imaginary half-diagonal railway.
- Fri Dec 12, 2025 9:39 pm
- Forum: Mods
- Topic: [MOD 0.17] VehicleSnap
- Replies: 90
- Views: 62513
Re: [MOD 0.17] VehicleSnap
-- 0.07386350632 measured from train wagon orientation, still off very tiny bit
local rail_est = 0.07405 -- Best estimate so far 0.07405
local lockAxis = {
rail_est, 0.25-rail_est, 0.25+rail_est, 0.5-rail_est,
0.5+rail_est, 0.75-rail_est, 0.75+rail_est, 1.0-rail_est }
As it seems 1:2 is ...
- Tue Oct 07, 2025 2:22 pm
- Forum: Mods
- Topic: [MOD 0.17] VehicleSnap
- Replies: 90
- Views: 62513
Re: [MOD 0.17] VehicleSnap
But i never considered this mod to actually use more than 8 rail directions, the extra angles between were just for immersion. I set it to 8 in mod settings myself.
Ok, you are using only 8 directions when playing the game.
Nevertheless the most popular user choice is 16, not 8.
So thank you for ...
- Sat Aug 30, 2025 6:09 pm
- Forum: Mods
- Topic: [MOD 0.17] VehicleSnap
- Replies: 90
- Views: 62513
Re: [MOD 0.17] VehicleSnap
Thanks for the most useful Factorio mod! (BTW, it is not a joke)
I like to drive a car along rails, and it was not a problem in Factorio 1.x due to this nice mod!
But in Factorio 2.0 there are 16 rail directions instead of 8, and they are not placed at equal angles anymore.
So, by setting snap ...
I like to drive a car along rails, and it was not a problem in Factorio 1.x due to this nice mod!
But in Factorio 2.0 there are 16 rail directions instead of 8, and they are not placed at equal angles anymore.
So, by setting snap ...