# PhysObj:RotateAroundAxis

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

```lua
Angle PhysObj:RotateAroundAxis( Vector dir, number ang )
```

## Açıklama

[Angle:RotateAroundAxis](https://gmod.tr/wiki/Angle:RotateAroundAxis) için bir kolaylık fonksiyonudur.

## Argümanlar

1. [Vector](https://gmod.tr/wiki/Vector) **dir**: Döndürme işleminin yapılacağı yön
2. [number](https://gmod.tr/wiki/number) **ang**: Derece cinsinden döndürme miktarı

## Döndürdükleri

1. [Angle](https://gmod.tr/wiki/Angle): Sonuç olarak ortaya çıkan açı

### Örnek

Bu fonksiyonun [Angle:RotateAroundAxis](https://gmod.tr/wiki/Angle:RotateAroundAxis) ile aynı olduğunu gösterir.

```lua
local phys = Entity(1):GetEyeTrace().Entity:GetPhysicsObject() -- Fizik nesnemiz

print( phys:RotateAroundAxis( Vector( 1, 0, 0 ), 20 ) )

local a = phys:GetAngles()
a:RotateAroundAxis( Vector( 1, 0, 0 ), 20 )
print( a )
```

**Çıktı:** Birebir aynı iki açı

```lua
-27.179 133.246 -23.236
-27.179 133.246 -23.236
```

- [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/PhysObj:RotateAroundAxis
