R3d.World:destroyBody

From GiderosMobile
Revision as of 14:30, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2019.10
Class: R3d.World

Description

Destroys a rigid body in the dynamics world. <syntaxhighlight lang="lua"> r3d.World:destroyBody(body) </source>

Parameters

body: (body) the body to destroy

Example

<syntaxhighlight lang="lua"> stage:addEventListener(Event.ENTER_FRAME, function(e) world:destroyBody(body) world:step(e.deltaTime) end </source>