Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- timer.Create("SleepPenetratingPhysics", 0.1, 0, function()
- for key, entity in pairs(ents.GetAll()) do
- local phys = entity:GetPhysicsObject()
- if IsValid(phys) and phys:IsPenetrating() then
- phys:Sleep()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement