PhysicsCreateWorld: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} Creates physics world with default settings. ==Syntax== <syntaxhighlight lang="lua"> physics physicsCreateWorld( float gravityX= 0, float grav...")
 
No edit summary
Line 5: Line 5:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
physics physicsCreateWorld( float gravityX= 0, float gravityY= 0, float gravityZ = -9.81)             
physics physicsCreateWorld( [ float gravityX, float gravityY, float gravityZ ] )             
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''gravity:''' gravitation used for simulation.  
*'''gravity:''' gravitation used for simulation. Default: 0,0, -9.81


===Returns===
===Returns===

Revision as of 07:48, 15 February 2020