User:CrosRoad95: Difference between revisions
Jump to navigation
Jump to search
CrosRoad95 (talk | contribs) No edit summary |
CrosRoad95 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | |||
{{Client function}} | |||
Creates physics world with default settings. | |||
==Syntax== | |||
<syntaxhighlight lang="lua"> | |||
physics physicsCreateWorld( float gravityX= 0, float gravityY= 0, float gravityZ = -9.81) | |||
</syntaxhighlight> | |||
''' | ===Required Arguments=== | ||
*'''gravity:''' gravitation used for simulation. | |||
===Returns=== | |||
*'''physics''' world used for simulation. | |||
==Example== | |||
<syntaxhighlight lang="lua"> | |||
physics = physicsCreateWorld() | |||
</syntaxhighlight> | |||
==See Also== | |||
{{Client_physics_functions}} | |||
Revision as of 13:16, 8 February 2020
Creates physics world with default settings.
Syntax
physics physicsCreateWorld( float gravityX= 0, float gravityY= 0, float gravityZ = -9.81)
Required Arguments
- gravity: gravitation used for simulation.
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