R3d.DebugDraw.new: Difference between revisions

From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight"
m Text replacement - "</source>" to "</syntaxhighlight>"
Line 7: Line 7:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
r3d.DebugDraw.new(r3dWorld)
r3d.DebugDraw.new(r3dWorld)
</source>
</syntaxhighlight>


=== Parameters ===
=== Parameters ===
Line 17: Line 17:
local debugDraw = r3d.DebugDraw.new(world)
local debugDraw = r3d.DebugDraw.new(world)
stage:addChild(debugDraw)
stage:addChild(debugDraw)
</source>
</syntaxhighlight>


{{r3d.DebugDraw}}
{{r3d.DebugDraw}}

Revision as of 13:32, 13 July 2023

Available since: Gideros 2020.11
Class: r3d.DebugDraw

Description

Creates a new r3d.DebugDraw instance.

r3d.DebugDraw.new(r3dWorld)

Parameters

r3dWorld: (r3d.World) the react physics 3D world

Example

local world = r3d.World.new(0, -9.8, 0) -- gravity
local debugDraw = r3d.DebugDraw.new(world)
stage:addChild(debugDraw)




ReactPhysics3D