Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld 07158574-5…

CollisionGroup

Sets collision group membership and filter masks on an entity's physics colliders using a bitmask. Two colliders collide only when `(a.membership & b.filter) ~= 0` AND `(b.membership & a.filter) ~= 0`.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 2mo ago
What it does

CollisionGroup

Sets collision group membership and filter masks on an entity's physics colliders using a bitmask. Two colliders collide only when (a.membership & b.filter) ~= 0 AND (b.membership & a.filter) ~= 0.

Public fields: membership (default 0xFFFFFFFF), filter (default 0xFFFFFFFF).

Methods: setGroups(membership, filter), ignoreEntity(entityId, ignore?).

entity(id).component.add("CollisionGroup", { membership = 1, filter = 3 })

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

CollisionGroup Component Sets collision group membership and filter masks on an entity's physics colliders. Uses a bitmask system where: - membership: which groups this entity belongs to - filter: which groups this entity can collide with Two colliders collide only when both conditions are met: (a.membership & b.filter) ~= 0 AND (b.membership & a.filter) ~= 0 Default: membership = 0xFFFFFFFF, filter = 0xFFFFFFFF (collides with everything) Config is the native CollisionGroups ECS component (typed ecs.CollisionGroups API), and is applied to the Rapier collider via physics.setCollisionGroups. Usage: entity.find("player").component.add("CollisionGroup", { membership = 1, -- group 1 filter = 3, -- collides with groups 1 and 2 })

insertNative( ) → void

awake( ) → void

onPropertyChanged(key: ?, value: ?, oldValue: ?) → void

argtypedescription
key?
value?
oldValue?

onDestroy( ) → void

setGroups(membership: number, filter: number) → void

Set both the membership and filter masks atomically. Each is a 32-bit bitmask; this entity's collider belongs to every bit set in membership and may collide with every bit set in filter.

argtypedescription
membershipnumberBitmask of groups this entity belongs to.
filternumberBitmask of groups this entity collides with.

examples

group:setGroups(1, 3)

ignoreEntity(entityId: string, ignore: boolean?) → void

Add or remove a per-pair collision-ignore rule between this entity and another entity. Pair-ignore overrides group filter masks.

argtypedescription
entityIdstringThe other entity to ignore (or stop ignoring).
ignoreboolean?true (or omitted) to ignore collisions, false to re-enable.

examples

group:ignoreEntity(otherId)
group:ignoreEntity(otherId, false)

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

3items
·
other · born here
▤file
▲ 0↑ born
backing path · components/CollisionGroup.component

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.