# PhysObj:GetEnergy

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

```lua
number PhysObj:GetEnergy()
```

## Açıklama

Fizik nesnesinin doğrusal ve dönme kinetik enerjilerinin toplamını döndürür.

## Döndürdükleri

1. [number](https://gmod.tr/wiki/number): Kinetik enerji

### Örnek

GetEnergy fonksiyonunun dahili olarak ne yaptığını taklit eder.

```lua
local linear_kenergy = 0.5 * phys:GetMass() * phys:GetVelocity() ^ 2 -- 1/2 mv^2
local rotational_kenergy = 0.5 * phys:GetInertia() * phys:GetAngleVelocity() ^ 2 -- 1/2 Iw^2
local kenergy = linear_kenergy + rotational_kenergy
```

- [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:GetEnergy
