branchrust_reboot/main/Workcartcancel
367 Commits over 212 Days - 0.07cph!
Test map edit, add test sedans on railway
Improved train speed control
Going back to kinematic track movement
Trying something with velocity
Better train driving, still a bit bumpy but improving
Get the train driving on the track manually again, along with the snap-to-spline. Not working very well, will probably need to change how this is done
Train track friction edit
Tuned PID values, removed wheel friction
Initial work on allowing real physics on the train while also keeping it on the track in normal conditions. Apply PID controller-style corrective forces
Correctly calculate the end of the rail line
Instead of updating the move distance for the front and rear train wheels independently, calculate just the front wheels and calculate the rear wheel position based on the distance between front and rear. Makes sure the front and rear wheel distance stays correct
Fix next/prev track distance calculations
Call track position finder recursively, letting trains handle any case where they're looking more than one track piece ahead. Save relative track orientation for next/prev track sections.
Workcart movement progress
Fixing train movement bugs
Fixed workcart glitching out when moving in reverse onto a previous track section
Work cart now has basic driving movement, follows along the train track spline
Fixed world space calculation of spline points and tangents. All track sections now find their next/prev sections correctly
Refactoring, more track work
Assign train to tracks separate for front vs. rear wheels
Have the train detect the track section it's on
Train track collator now working correctly with any track orientation
New CollateTrainTracks script can run at world gen time to collate all train track segments in the scene into complete tracks. Still WIP as it's missing handling for rotated track pieces
Adjust mount point to new workcart seat position
Spline type option. Set all to "Train Track".
Set up accurate splines for all existing track pieces
Added custom tangent support to WorldSpline. Allow PathInterpolator to accept custom tangents. Allows for any curve without having to add more points
Added WorldSpline script with editor visuals on the curve (cubic hermite), using the existing PathInterpolator as a base.
Set up control levers to move. Improved throttle key controls.
Updated WorkCart prefab model to include the new control handles. Linked the model back directly on the prefab so it should auto-update in the future.
Make the WorkCart monitor more visible
WorkCart actually starts/stops engine, uses fuel. Monitor updates to show fuel amount.
Added fuel system, fuel interaction, and engine controller to Workcart. Network++
Test map edit, remove the modular cars
Remove unused Minicopter code
Convert minicopter to use my shared vehicle engine class as well, since it uses the same startup -> run -> stop engine states
Separate the engine start/run/stop code out of modular car so it can be reused for workcart
Dashboard monitor shows fuel status and throttle setting