Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Utilities
1/3
Collider Adapter scripts to use both in 2D or 3D colliders.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2019.4.36f1
Compatible
Compatible
Compatible
Description

This package providers an AbstractColliderAdapter component to detect what 2D or 3D collider to use. This component implements the ICollider interface, allowing you to easily Unit Test your code by using some mocking framework, like NSubstitute.


Also, there are some code extensions for some colliders. Using them, you can debug your ray casts by seeing them on the Scene.

Technical details
  • Extension methods to debug BoxCast, BoxCast2D, CapsuleCast, CapsuleCast2D, SphereCast and CircleCast.
  • Create abstract code for 2D or 3D collisions.
  • Use ICollider interface to Unit Test your code by using some mocking framework.
  • All demo Scripts and Scenes are present on a Demo folder. You can easily delete it from your project later.
  • Source code fully documented.
  • Documentation.

Collider Adapter

(not enough ratings)
14 users have favourite this asset
(14)
FREE
License type
File size
390.8 KB
Latest version
1.1.0
Latest release date
Aug 22, 2022
Original Unity version
2019.4.36
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR