Difference between revisions of "R3d.DebugDraw.new"
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...") |
|||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
=== Description === | === Description === | ||
| − | Creates a new | + | Creates a new r3d.DebugDraw instance. |
| − | < | + | <syntaxhighlight lang="lua"> |
r3d.DebugDraw.new(r3dWorld) | r3d.DebugDraw.new(r3dWorld) | ||
| − | </ | + | </syntaxhighlight> |
=== Parameters === | === Parameters === | ||
| − | '''r3dWorld''': (r3d.World) the | + | '''r3dWorld''': (r3d.World) the ReactPhysics3D world<br/> |
=== 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) | ||
stage:addChild(debugDraw) | stage:addChild(debugDraw) | ||
| − | </ | + | </syntaxhighlight> |
{{r3d.DebugDraw}} | {{r3d.DebugDraw}} | ||
Latest revision as of 08:35, 19 December 2025
Available since: Gideros 2020.11
Class: r3d.DebugDraw
Description
Creates a new r3d.DebugDraw instance.
r3d.DebugDraw.new(r3dWorld)
Parameters
r3dWorld: (r3d.World) the ReactPhysics3D world
Example
local world = r3d.World.new(0, -9.8, 0) -- gravity
local debugDraw = r3d.DebugDraw.new(world)
stage:addChild(debugDraw)