Networking work
This commit is contained in:
@@ -140,7 +140,8 @@ screen_to_world :: (camera: Camera, screen_position: Vector2, distance: float) -
|
||||
pos.z = 0.0;
|
||||
pos.w = 1.0;
|
||||
|
||||
success :, result := inverse(camera.projection_matrix * camera.view_matrix) * pos;
|
||||
success, mat := inverse(camera.projection_matrix * camera.view_matrix);
|
||||
result := mat * pos;
|
||||
result.x /= result.w;
|
||||
result.y /= result.w;
|
||||
result.z /= result.w;
|
||||
|
||||
@@ -85,6 +85,7 @@ Entity :: struct {
|
||||
|
||||
#if NETWORKING {
|
||||
remote_id: Entity_Id; @DontSerialize
|
||||
client_id: Client_Id; @DontSerialize
|
||||
is_proxy: bool; @DontSerialize
|
||||
last_replication_time: float; @DontSerialize
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user