R3d.Fixture

From GiderosMobile
Revision as of 21:58, 17 December 2020 by MoKaLux (talk | contribs) (update to r3d v0.8)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Description

A proxy shape (also called fixture) is what links a given collision shape to the body it has been added.

You can use the returned proxy shape to get or set parameters of the given collision shape in that particular body.

Methods

r3d.Fixture:getMaterial gets the fixture material
r3d.Fixture:raycast performs a ray cast on the fixture
r3d.Fixture:setCollideWithMaskBits sets the categories this fixture can collide with
r3d.Fixture:setCollisionCategoryBits sets the fixture collision category bit
r3d.Fixture:setMaterial sets the fixture material
r3d.Fixture:testPointInside checks if a point is inside the fixture


ReactPhysics3D