PhysicsDrawDebug: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...")
 
 
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