R3d.Fixture:setCollisionCategoryBits

From GiderosMobile
Revision as of 14: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.Fixture

Description

Sets the fixture category bit.

r3d.Fixture:setCollisionCategoryBits(bits)

Parameters

bits: (number) the fixture category bit (power of 2)

Example

local fixture = ship.body:createFixture(shape, nil, mass) -- shape, transform, mass
fixture:setCollisionCategoryBits(8)