R3d.World:destroyBody

From GiderosMobile
Revision as of 22:58, 21 January 2020 by MoKaLux (talk | contribs)

Available since: Gideros 2019.10
Class: R3d.World

Description

Destroys a rigid body in the dynamics world.

r3d.World:destroyBody(body)

Parameters

body: (body) the body to destroy

Example

stage:addEventListener(Event.ENTER_FRAME, function(e)
	world:destroyBody(body)
	world:step(e.deltaTime)
end