R3d.DebugDraw.new: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2020.11<br/> '''Class:''' r3d.DebugDraw<br/> === Description === Creates a new r3d.DebugDraw instance. <source lang="lua"> r3..." |
m Text replacement - "<source" to "<syntaxhighlight" |
||
| Line 5: | Line 5: | ||
=== Description === | === Description === | ||
Creates a new [[r3d.DebugDraw]] instance. | Creates a new [[r3d.DebugDraw]] instance. | ||
< | <syntaxhighlight lang="lua"> | ||
r3d.DebugDraw.new(r3dWorld) | r3d.DebugDraw.new(r3dWorld) | ||
</source> | </source> | ||
| Line 13: | Line 13: | ||
=== Example === | === Example === | ||
< | <syntaxhighlight lang="lua"> | ||
local world = r3d.World.new(0, -9.8, 0) -- gravity | local world = r3d.World.new(0, -9.8, 0) -- gravity | ||
local debugDraw = r3d.DebugDraw.new(world) | local debugDraw = r3d.DebugDraw.new(world) | ||
Revision as of 13:30, 13 July 2023
Available since: Gideros 2020.11
Class: r3d.DebugDraw
Description
Creates a new r3d.DebugDraw instance. <syntaxhighlight lang="lua"> r3d.DebugDraw.new(r3dWorld) </source>
Parameters
r3dWorld: (r3d.World) the react physics 3D world
Example
<syntaxhighlight lang="lua"> local world = r3d.World.new(0, -9.8, 0) -- gravity local debugDraw = r3d.DebugDraw.new(world) stage:addChild(debugDraw) </source>