# net.WriteNormal

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/net.WriteNormal
- **Çeviri tarihi:** 2025-09-08

```lua
net.WriteNormal( Vector normal )
```

## Açıklama

Net mesajına normalleştirilmiş/yön vektörü (uzunluğu 1 olan bir [Vector](https://gmod.tr/wiki/Vector)) yazar.

Bu fonksiyon, [net.WriteVector](https://gmod.tr/wiki/net.WriteVector)'a kıyasla daha az bant genişliği kullanır ve uzunluğu 1'den büyük olan vektörleri düzgün bir şekilde göndermez.

## Argümanlar

1. [Vector](https://gmod.tr/wiki/Vector) **normal**: Gönderilecek olan normalleştirilmiş/yön vektörü.

### Örnek

Bu fonksiyon ile [net.WriteVector](https://gmod.tr/wiki/net.WriteVector) arasındaki farkı gösterir.

```lua
if ( SERVER ) then
	util.AddNetworkString( "test1" )
	util.AddNetworkString( "test2" )

	timer.Simple( 1, function()
		net.Start( "test1" )
			net.WriteVector( Vector( 1.23456789, 2.3456789, 3.456789 ) )
		net.Broadcast()

		net.Start( "test2" )
			net.WriteNormal( Vector( 1.23456789, 2.3456789, 3.456789 ) )
		net.Broadcast()

		net.Start( "test2" )
			net.WriteNormal( Vector( 1.23456789, 2.3456789, 3.456789 ):GetNormalized() )
		net.Broadcast()

		net.Start( "test2" )
			net.WriteNormal( Vector( 0.5, -0.5, 0.23 ) )
		net.Broadcast()
	end )
else
	net.Receive( "test1", function( ... )
		print( ... )
		print( net.ReadVector() )
	end )

	net.Receive( "test2", function( ... )
		print( ... )
		print( net.ReadNormal() )
	end )
end
```

**Çıktı:**

```lua
69	nil
1.218750 2.343750 3.437500
27	nil
1.000000 1.000000 0.000000
27	nil
0.283341 0.538349 0.793661
27	nil
0.499756 -0.499756 0.707452
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/net.WriteNormal
