Cylinder Collider

olivecrow

(3)
$14
Publisher olivecrow
File size 44.56kB
Number of files 8
Latest version 1
Latest release date 2024-03-15 05:32:12
First release date 2024-03-15 05:32:12
Supported Unity versions 2018.4.2 or higher

🔴🔴Features🔴🔴

1. Super easy to use. It can be used in the same way as any other collider.

2. Included Collider API. (sharedMaterial, isTrigger, direction, Raycast(), ClosestPoint... etc)

3. Of course, you can change variables at runtime as well.

4. Pipe shape of cylinder collider included.

5. TorusCollider included.

6. Size can be changed using the gizmo.



🟢🟢How to Use🟢🟢

Usage is very simple.

It shares the same interface with other collider components in Unity.

The difference is only 2 variables.


- Resolution : Determines the number of sub BoxColliders that make up CylinderCollider. The higher the value, the closer it is to a true cylinder.


- Shape : You can select cylinder shape or pipe shape.

You can change all veriables in runtime. Just use it as if any other collider.


---


If you have any questions or find an error, please send an email to [email protected]

I don't check Asset Store reviews every day, so sending me an email is the fastest way for me to act.


---


🟡🟡Limitation🟡🟡

1)

Each component inherits MonoBehaviour, not Collider.


This is simply because scripts that do not inherit from MonoBehaviour cannot be added to game objects.


However, each component can implement Collider's API as is, so it can be used like any other Collider.



2)

Multiple Components in a gameObject is disallowed.

Because these components has child gameObject for primitive colliders and should find it on reset.

If you want add multiple colliders, add child gameObjects and attach the component to it.


3)

Changing the size along an axis that does not match the collider's direction will result in a distorted shape.


This is the same mechanism as no other collider transforms into a squashed shape.


Top Publisher Assets