For years we have struggled to cope with a fatal flaw in Garry’s Mod physics. Objects can only move at a maximum of 50.8 m / s.
Now, we have broken it.
The post
Alright, this will let you increase the maximum velocity of physics objects, currently 2000 in/s or 113mph, among other things. I wrote this a while ago, was going to add more stuff to it, but chose to remove it and release it as a simple performance/settings module. Here is a list of extra ConVars this adds.
ConVars:
- phys_maxvelocity
- Default: 2000 in/sec
- phys_maxangularvelocity
- Default: 3600 deg/sec
- phys_collisions_object_timestep
- Default: 10
- Description: Objects may collide this many times before they are frozen for performance reasons.
- phys_collisions_timestep
- Default: 250
- Description: Same as phys_collisions_object_timestep, but against the world.
- phys_minfrictionmass
- Default: 10
- phys_maxfrictionmass
- Default: 2500
- phys_gravity_x
- phys_gravity_y
- phys_gravity_z
- Description: Changes gravity for physics objects on any combination of axes.
- phys_airdensity
- Description: Changes the density of air in the physics simulation ( Doesn’t require cheats ).
Module:
- physics.GetPerformanceSettings()
- physics.SetPerformanceSettings( [table] settings )
- physics.GetGravity()
- physics.SetGravity( [vector] gravity )
- physics.GetAirDensity()
- physics.SetAirDensity( [float] density )
For a list of the fields SetPerformanceSettings uses, check physics.lua.
Download:
http://cdbarrett.com/dump/physics.zip
Download:
Good Luck!
Skip to content

















