wall collision
This commit is contained in:
parent
54b840da3e
commit
dd6b0fffc1
1 changed files with 63 additions and 34 deletions
|
|
@ -1,3 +1,8 @@
|
|||
using TanksServer.Services;
|
||||
|
||||
namespace TanksServer.Models;
|
||||
|
||||
internal record struct FloatPosition(double X, double Y);
|
||||
internal readonly record struct FloatPosition(double X, double Y)
|
||||
{
|
||||
public PixelPosition ToPixelPosition() => new((int)X % MapService.PixelsPerRow, (int)Y % MapService.PixelsPerRow);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue