CollisionGroups
CollisionGroups represents an array of collision group numbers.
Collision groups are used to define how objects in the world collide with each others.
Group numbers go from 1 to 8. The Map by default is in group 1, and by default, all Objects collide with that group, but that behavior can be changed.
Constructors
CollisionGroups ( )
Creates an empty CollisionGroups.
Creates a CollisionGroups with given group numbers.
local groups1 = CollisionGroups(1, 2, 3) local groups2 = CollisionGroups(2, 3, 1) if groups1 == groups2 then print("both groups are the same") end