Sim speed: the drawn turn goes the way the step turned; the history test fires both ships

The first verification showed the rotation sense wrong and no shot resolving in 30 s of Duel; both tests now pin what they claim. Unverified at this commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-08 18:41:29 +02:00
commit 4d64966d04
2 changed files with 15 additions and 4 deletions

View file

@ -20,7 +20,7 @@ public static class DrawAhead
var u = float3(q.x, q.y, q.z);
var up = float3(0, 1, 0);
up += 2 * (q.w * cross(u, up) + cross(u, cross(u, up)));
var half = -ship.TurnRate * lead * .5f;
var half = ship.TurnRate * lead * .5f;
var s = sin(half);
var t = new quaternion(up.x * s, up.y * s, up.z * s, cos(half));
// Hamilton product t * q: CultMath carries no quaternion product (a gap in CultMath, not filled here).