PhysObj:RotateAroundAxis

  Angle PhysObj:RotateAroundAxis( Vector dir, number ang )

Açıklama

Angle:RotateAroundAxis için bir kolaylık fonksiyonudur.

Argümanlar

1 Vector dir
Döndürme işleminin yapılacağı yön
2 number ang
Derece cinsinden döndürme miktarı

Döndürdükleri

1 Angle
Sonuç olarak ortaya çıkan açı

Örnek

Bu fonksiyonun Angle:RotateAroundAxis ile aynı olduğunu gösterir.

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çı
-27.179 133.246 -23.236 -27.179 133.246 -23.236

Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord