C# Class GarrysModLuaShared.physenv

The physenv library allows you to control the physics environment created by the engine, and lets you modify constants such as gravity and maximum velocity.
显示文件 Open project: OmegaExtern/gmod-csharp-binary-module

Public Methods

Method Description
AddSurfaceData ( LuaState luaState, string properties ) : void

Loads the given surface properties as a string, follows the file format.

GetAirDensity ( LuaState luaState ) : double

Returns the air density.

SetAirDensity ( LuaState luaState, double airDensity ) : void

Sets the air density.

Method Details

AddSurfaceData() public static method

Loads the given surface properties as a string, follows the file format.
public static AddSurfaceData ( LuaState luaState, string properties ) : void
luaState LuaState Pointer to lua_State struct.
properties string The properties to add.
return void

GetAirDensity() public static method

Returns the air density.
public static GetAirDensity ( LuaState luaState ) : double
luaState LuaState Pointer to lua_State struct.
return double

SetAirDensity() public static method

Sets the air density.
public static SetAirDensity ( LuaState luaState, double airDensity ) : void
luaState LuaState Pointer to lua_State struct.
airDensity double The new air density.
return void