Delete AetheriaMath in favour of CultMath
AetheriaMath predates the CultMath swap and re-implemented helpers CultMath now owns. Callers use CultMath directly: decay (Ship, AetherDrive, Entity), damp (VelocityConversion, FieldTester, FieldDriver), first_order_intercept (TurretController, Combat, GuidedProjectile), quadratic_bezier (FieldDriver) and smootherstep (Ship). Parameter order matches in every case, and those formulas have the same float evaluation order, so behaviour is unchanged. Galaxy's commented-out segment check names distance_to_segment. The other overloads had no callers and are dropped without a CultMath counterpart being needed: the double Damp overloads, FindDistanceToSegment, GetCatmullRomPosition, GetCubicSplinePosition, Smoothstep(x), and the Deg2Rad/Rad2Deg constants. AetherDb census, factions and hardpoint-fit are byte-identical to the pre-cut captures. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
e308c19e4c
commit
55c3fc6a49
12 changed files with 19 additions and 273 deletions
|
|
@ -233,7 +233,7 @@ public class FieldDriver : MonoBehaviour
|
|||
|
||||
if (_grabObject != null)
|
||||
{
|
||||
_tendrilBasePos = AetheriaMath.Damp(_tendrilBasePos.ToCultMath(), _grabObject.position.ToCultMath(), TendrilBaseDamping, Time.deltaTime).ToUnity();
|
||||
_tendrilBasePos = damp(_tendrilBasePos.ToCultMath(), _grabObject.position.ToCultMath(), TendrilBaseDamping, Time.deltaTime).ToUnity();
|
||||
switch (_grabPhase)
|
||||
{
|
||||
case GrabPhase.Extend:
|
||||
|
|
@ -292,7 +292,7 @@ public class FieldDriver : MonoBehaviour
|
|||
for (int i = 1; i <= GIZMO_STEPS; i++)
|
||||
{
|
||||
var l = (float)i / GIZMO_STEPS;
|
||||
var next = AetheriaMath.GetQuadraticSplinePosition(_tendrilBasePos.ToCultMath(), _tendrilBendTarget.ToCultMath(), _tendrilTargetPos.ToCultMath(), l).ToUnity();
|
||||
var next = quadratic_bezier(_tendrilBasePos.ToCultMath(), _tendrilBendTarget.ToCultMath(), _tendrilTargetPos.ToCultMath(), l).ToUnity();
|
||||
Gizmos.DrawLine(previous, next);
|
||||
previous = next;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue