R3d.World:destroyBody

From GiderosMobile
Revision as of 15:32, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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