R3d.Body

From GiderosMobile
Revision as of 10:42, 8 October 2019 by Hgy29 (talk | contribs)


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2019.10

Description

Methods

r3d.Body:createFixture create a new fixture
r3d.Body:destroyFixture destroy a fixture
r3d.Body:getTransform get the body's transform
r3d.Body:setTransform set the body's transform
r3d.Body:getMaterial get the body's material
r3d.Body:setMaterial set the body's material
r3d.Body:setType set the body's type
r3d.Body:enableGravity enable or disable gravity on the body
r3d.Body:setIsAllowedToSleep allow or disallow a body to sleep
r3d.Body:applyForce apply a force to this body
r3d.Body:applyTorque apply a torque to this body
r3d.Body:raycast perform a ray cast on the body
r3d.Body:testPointInside check if a point is inside the body

Constants

r3d.Body.DYNAMIC_BODY
r3d.Body.KINEMATIC_BODY
r3d.Body.STATIC_BODY