branchrust_reboot/main/Workcartcancel
674 Commits over 273 Days - 0.10cph!
Added train track splines to all the train tunnel track pieces
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.
Train tunnels update / Prototype junction switch / Overpass polish
Workcart movement progress
Fixing train movement bugs
Fixed workcart glitching out when moving in reverse onto a previous track section
Workcart update
properly incorporated baked lod and material on LOD 3
updated workcart prefab
Updating workcart prefab and materials.
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
Workcart update
Combined materials, reduced material count by 2.
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
Workcart seat adjust so it's easier for the hands to control the levers.
included last lod baked material and setup.
last Lod level bake material and setup
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.
Updated workcart so that left and right control levers are now independent from the interior mesh.
Make the WorkCart monitor more visible