physenv.SetPerformanceSettings
From GMod Wiki
Function | |
Syntax |
physenv.SetPerformanceSettings( Table Settings ) Where is this used? |
Description: | |
Sets physics performance settings | |
Returns: | nil |
Part of Library: | physenv |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Physenv.SetPerformanceSettings]Physenv.SetPerformanceSettings [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Change max velocity from 4000 to 60000. |
---|---|
Used on | |
Code | Settings = {} Settings.MaxVelocity = 60000 physenv.SetPerformanceSettings(Settings) |
Output | Max physics velocity is now 60000 |
Additional Notes
- Values the table can have:
MaxCollisionsPerObjectPerTimestep (integer) MaxCollisionChecksPerTimestep (integer) MaxVelocity (float) MaxAngularVelocity (float) LookAheadTimeObjectsVsWorld (float) LookAheadTimeObjectsVsObject (float) MinFrictionMass (float) MaxFrictionMass (float)