R3d.Fixture:setCollisionCategoryBits

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.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)