Pretty straightforward question, rather difficult answer.
How do i slow down physics for certain props/entities?
Similar to using host_timescale, but only effecting said prop/entity.
i'm expecting something like ent:GetPhysicsObject():SetTimescale( 0.5 )
You can't. You can only change gravity.
Can't?
Due to the nature of the timescale being required for physics, i figure this is probably the most promising.
[URL]http://wiki.garrysmod.com/page/PhysObj/SetInertia[/URL]
in addition to the localized gravity.
put on ent.Think() to math.clamp each part of the vector.
[lua]
if( inertVec.x != 0 ) then inertVec.x = math.clamp( inertVec.x, -0.1,0.1 ) end
ent:GetPhysicsObject():SetInertia( inertVec )
[/lua]
I'll let you know how it goes.
Inertia is not timescale.
It may not be timescale, but for all intents and purposes it achieves a similar effect.
Sorry, you need to Log In to post a reply to this thread.