R3d.DebugDraw.new: Difference between revisions

From GiderosMobile
m Text replacement - "</source>" to "</syntaxhighlight>"
No edit summary
Line 10: Line 10:


=== Parameters ===
=== Parameters ===
'''r3dWorld''': (r3d.World) the react physics 3D world<br/>
'''r3dWorld''': (r3d.World) the ReactPhysics3D world<br/>


=== Example ===
=== Example ===

Revision as of 07:34, 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)




ReactPhysics3D