Netcode Bootstrap

This commit is contained in:
Luis Gonzalez
2026-05-31 14:27:52 -07:00
parent 99d8d2d2a9
commit 7fa77ce821
1813 changed files with 2921554 additions and 84 deletions
@@ -0,0 +1,18 @@
using Unity.Entities;
using Unity.Mathematics;
using Unity.NetCode;
namespace ProjectM.Simulation
{
/// <summary>
/// Authoritative aim/facing direction, decoupled from movement heading so twin-stick aim is
/// independent of travel direction. Written in predicted sim from PlayerInput.Aim; consumed by
/// presentation now and ability systems (M2). Replicated so interpolated remote players show
/// the correct facing.
/// </summary>
public struct PlayerFacing : IComponentData
{
/// <summary>Normalized planar facing direction (world XZ mapped to float2 x,y).</summary>
[GhostField(Quantization = 1000)] public float2 Direction;
}
}