PhysicsCreateWorld: Difference between revisions
Jump to navigation
Jump to search
CrosRoad95 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} Creates physics world with default settings. ==Syntax== <syntaxhighlight lang="lua"> physics physicsCreateWorld( float gravityX= 0, float grav...") |
CrosRoad95 (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Note|Availiable only in custom fork of mta. see https://github.com/multitheftauto/mtasa-blue/pull/1246 }} | |||
{{Client function}} | {{Client function}} | ||
Creates physics world with default settings. | Creates physics world with default settings. | ||
Line 5: | Line 8: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
physics physicsCreateWorld( float gravityX | 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=== |
Latest revision as of 11:55, 18 September 2020
Creates physics world with default settings.
Syntax
physics physicsCreateWorld( [ float gravityX, float gravityY, float gravityZ ] )
Required Arguments
- gravity: gravitation used for simulation. Default: 0,0, -9.81
Returns
- physics world used for simulation.
Example
physics = physicsCreateWorld()
See Also
- physicsCreateWorld
- physicsDestroy
- physicsCreateShape
- physicsCreateShapeFromModel
- physicsCreateRigidBody
- physicsCreateStaticCollision
- physicsCreateConstraint
- physicsAddChildShape
- physicsRemoveChildShape
- physicsGetChildShapes
- physicsSetChildShapeOffsets
- physicsGetChildShapeOffsets
- physicsGetShapes
- physicsGetRigidBodies
- physicsGetStaticCollisions
- physicsGetConstraints
- physicsSetProperties
- physicsGetProperties
- physicsDrawDebug
- physicsSetDebugMode
- physicsBuildCollisionFromGTA
- physicsApplyVelocity
- physicsApplyVelocityForce
- physicsApplyAngularVelocity
- physicsApplyAngularVelocityForce
- physicsApplyDamping
- physicsRayCast
- physicsShapeCast
- physicsGetElementType
- physicsIsElement