Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/walterellisfun/ConeCast
A Unity3d ConeCastAll extension method for the Physics class, similar to Physics.SphereCastAll
https://github.com/walterellisfun/ConeCast
Last synced: 3 months ago
JSON representation
A Unity3d ConeCastAll extension method for the Physics class, similar to Physics.SphereCastAll
- Host: GitHub
- URL: https://github.com/walterellisfun/ConeCast
- Owner: walterellisfun
- License: mit
- Created: 2018-09-13T04:38:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-03T20:23:24.000Z (almost 4 years ago)
- Last Synced: 2024-05-15T20:02:16.009Z (6 months ago)
- Language: C#
- Homepage:
- Size: 996 KB
- Stars: 86
- Watchers: 2
- Forks: 12
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![ConeCast](https://github.com/walterellisfun/ConeCast/blob/master/ConeCast.gif)
# ConeCastAll extension method
A Unity3d ConeCastAll extension method for the Physics class.Use this to find colliders within a cone-shaped volume.
It uses SphereCastAll, which is like a RayCast tube, but then it uses Vector3.Angle to filter out hitpoints according to a cone.
Using it is very similar to using SphereCastAll.
Variables:
Vector3 origin,
float maxRadius,
Vector3 direction,
float maxDistance,
float coneAngle