# Entity:GetConstrainedPhysObjects

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

```lua
PhysObj, PhysObj Entity:GetConstrainedPhysObjects()
```

## Açıklama

Bir kısıtlama (constraint) varlığına dahil olan iki varlığın fizik nesnelerini (physobject) döndürür. Eğer varlık bir kısıtlama değilse, hiçbir değer döndürmez.

## Döndürdükleri

1. [PhysObj](https://gmod.tr/wiki/PhysObj): phys1
2. [PhysObj](https://gmod.tr/wiki/PhysObj): phys2

### Örnek

gmsave/constraints.lua dosyasından alınmıştır

```lua
function gmsave.ConstraintSave( ent )
	local t = {}
	t.EntOne, t.EntTwo = ent:GetConstrainedEntities()
	local PhysA, PhysB = ent:GetConstrainedPhysObjects()

	t.BoneOne = GetPhysicsObjectNum( t.EntOne, PhysA )
	t.BoneTwo = GetPhysicsObjectNum( t.EntTwo, PhysB )
	t.EntOne = gmsave.EntityEncode( t.EntOne )
	t.EntTwo = gmsave.EntityEncode( t.EntTwo )
	return t
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:GetConstrainedPhysObjects
