Difference between revisions of "R3d.Fixture:setCollisionCategoryBits"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2019.10<br/> '''Class:''' R3d.Fixture<br/> === Description === Sets the fixture category bit. <source lang="lua"> r3d.Fixture:setCollisionC...")
(No difference)

Revision as of 07:18, 23 January 2020

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)