Skip to content

feat: Use PhysicsScene2D.OverlapCollider in NetworkCollider2D - #1042

Merged
FirstGearGames merged 2 commits into
FirstGearGames:mainfrom
aaronkwan:feature/generic-networkcollider2d
Aug 14, 2026
Merged

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

Conversation

@aaronkwan

@aaronkwan aaronkwan commented May 18, 2026

Copy link
Copy Markdown
Contributor

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.
@FirstGearGames

Copy link
Copy Markdown
Owner

Thanks!

@FirstGearGames
FirstGearGames merged commit 130cf3a into FirstGearGames:main Aug 14, 2026
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.

2 participants