# util.LocalToWorld

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/util.LocalToWorld
- **Çeviri tarihi:** 2025-11-20

```lua
Vector util.LocalToWorld( Entity ent, Vector lpos, number bone = 0 )
```

## Açıklama

LocalToWorld ile ilgili fonksiyonları kullanan bir kolaylık fonksiyonudur.

> **NOT:** Eğer [Entity:EntIndex](https://gmod.tr/wiki/Entity.EntIndex) `0` döndürürse, fonksiyon gönderilen `lpos`'u geri döndürür.

## Argümanlar

1. [Entity](https://gmod.tr/wiki/Entity) **ent**: İşlem yapılacak entity.
2. [Vector](https://gmod.tr/wiki/Vector) **lpos**: Bir yerel uzay (local space) vektörü.
3. [number](https://gmod.tr/wiki/number) **bone** = 0: Aslında, entity'nin belirli bir [PhysObj](https://gmod.tr/wiki/PhysObj)'sine karşılık gelen sayı olarak işlev görür. Eğer bu belirli fizik nesnesi geçerliyse, [PhysObj:LocalToWorld](https://gmod.tr/wiki/PhysObj.LocalToWorld) kullanılır. Aksi takdirde, [Entity:LocalToWorld](https://gmod.tr/wiki/Entity.LocalToWorld) kullanılır.

## Döndürülenler

1. [Vector](https://gmod.tr/wiki/Vector): Karşılık gelen dünya uzayı (worldspace) vektörü.

- [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/util.LocalToWorld
