# Entity:GetPhysicsObjectCount

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

```lua
number Entity:GetPhysicsObjectCount()
```

## Açıklama

Bir varlığın sahip olduğu fizik nesnelerinin sayısını döndürür (genellikle ragdoll olmayanlar için 1).

## Döndürdüğü Değer

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

### Örnek

Bir ragdoll'daki tüm Fizik Nesnelerini bulur ve yukarı doğru bir kuvvet uygular.

```lua
for i=0, ragdoll:GetPhysicsObjectCount() - 1 do -- "ragdoll" bir ragdoll varlığı olmak üzere

	local phys = ragdoll:GetPhysicsObjectNum(i)
	phys:ApplyForceCenter( Vector( 0, 0, 10000 ) )

end
```

- [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/Entity:GetPhysicsObjectCount
