Skip to content

feat: Use PhysicsScene2D.OverlapCollider in NetworkCollider2D#1042

Open
aaronkwan wants to merge 2 commits into
FirstGearGames:mainfrom
aaronkwan:feature/generic-networkcollider2d
Open

feat: Use PhysicsScene2D.OverlapCollider in NetworkCollider2D#1042
aaronkwan wants to merge 2 commits into
FirstGearGames:mainfrom
aaronkwan:feature/generic-networkcollider2d

Conversation

@aaronkwan
Copy link
Copy Markdown

@aaronkwan aaronkwan commented May 18, 2026

Use PhysicsScene2D.OverlapCollider as a fallback to allow NetworkCollider2D to work with any 2D collider shape. Existing circle/box logic is kept because it uses AdditionalSize.

See discussion: #728

Note: A similar change is not possible for 3D colliders, as Unity's PhysicsScene does not provide a generic OverlapCollider method.

aaronkwan added 2 commits May 17, 2026 18:06
Use PhysicsScene2D.OverlapCollider to allow NetworkCollider2D to work with any 2D collider shape. This removes the need for shape-specific checks.

Note: A similar change is not possible for 3D colliders, as Unity's PhysicsScene does not provide a generic OverlapCollider method.
Use PhysicsScene2D.OverlapCollider to allow NetworkCollider2D to work with any 2D collider shape. This removes the need for shape-specific checks.

Note: A similar change is not possible for 3D colliders, as Unity's PhysicsScene does not provide a generic OverlapCollider method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant