Ballistic flight r3: name CultMath.float2x2.Rotate in full (the math.float2x2 method shadows the type)
The previous commit (2dcb7b20) does not build: DrawAhead.cs CS0119.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2dcb7b2078
commit
6b36835953
2 changed files with 2 additions and 3 deletions
|
|
@ -63,7 +63,7 @@ public static class DrawAhead
|
|||
{
|
||||
var at = Position(target, lead);
|
||||
var offset = target.ToWorldPoint((float2) cell) - target.Position.xz;
|
||||
var turned = mul(offset, float2x2.Rotate(Turn(target, lead)));
|
||||
var turned = mul(offset, CultMath.float2x2.Rotate(Turn(target, lead)));
|
||||
return float3(at.x + turned.x, at.y, at.z + turned.y);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ using UniRx;
|
|||
using Xunit;
|
||||
using static CultMath.math;
|
||||
using float2 = CultMath.float2;
|
||||
using float2x2 = CultMath.float2x2;
|
||||
using float3 = CultMath.float3;
|
||||
using int2 = CultMath.int2;
|
||||
|
||||
|
|
@ -429,7 +428,7 @@ public sealed partial class FireControlCut124Tests
|
|||
var position = e.Target.Position;
|
||||
var direction = e.Target.Direction;
|
||||
e.Target.Position += float3(e.Target.Velocity.x, 0, e.Target.Velocity.y) * lead;
|
||||
e.Target.Direction = mul(e.Target.Direction, float2x2.Rotate(e.Target.TurnRate * lead));
|
||||
e.Target.Direction = mul(e.Target.Direction, CultMath.float2x2.Rotate(e.Target.TurnRate * lead));
|
||||
var cellPoint = e.Target.ToWorldPoint((float2) cell);
|
||||
var expected = float3(cellPoint.x, e.Target.Position.y, cellPoint.y);
|
||||
e.Target.Position = position;
|
||||
|
|
|
|||
Loading…
Reference in a new issue