PhysicsDrawDebug: Difference between revisions
Jump to navigation
Jump to search
CrosRoad95 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} Draws all static collisions and rigid bodies and other depends on debug mode. Use it once every frame just like other dxDraw functions ==Syntax...") |
CrosRoad95 (talk | contribs) |
||
Line 19: | Line 19: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
physics = physicsCreateWorld() | physics = physicsCreateWorld() | ||
addEventHandler("onClientRender", function() | addEventHandler("onClientRender", root, function() | ||
physicsDrawDebug(physics) | physicsDrawDebug(physics) | ||
end) | end) |
Latest revision as of 14:35, 9 February 2020
Draws all static collisions and rigid bodies and other depends on debug mode. Use it once every frame just like other dxDraw functions
Syntax
bool physicsDrawDebug(physics thePhysics)
Required Arguments
- thePhysics: physics world
Returns
- bool if arguments are valid
Example
physics = physicsCreateWorld() addEventHandler("onClientRender", root, function() physicsDrawDebug(physics) end)
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