R3d.World:destroyBody

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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