branchrust_reboot/main/naval_update/boat_building/directional_dragcancel
2 Commits over 0 Days - ∞cph!
initial WIP directional drag (not balanced and not fast)
- take a set of planes offset from hull block bounds at a regular set interval
- project min/max bounds extents onto plane and perform a set of raycasts in flow direction and use dot of normal against -flow to scale drag impact and accumulate
- drag is saved per-angle and will update for the boat at set intervals by slerping between nearest values to current angle of velocity against forward
- considering this as "drag" currently, but may apply this as a force for easier control
structure to query drag by angle from flattened pre-baked data (dummy data for testing)