Collision From Raycast by bartlomiejwolk - 12


CollisionFromRaycast component for Unity

Unknown VersionOtherUpdated 5 years agoCreated on May 11th, 2015
Go to source


CollisionFromRaycast extension for Unity. Use it to detect collision with raycast.

Licensed under MIT license. See LICENSE file in the project root folder.
Extensions with version below 1.0.0 are considered to be pre/alpha and may not work properly.



  • Add multiple callbacks to execute on raycast hit
  • Pause game on collision
  • Disable component after collison
  • Set raycast length
  • Draw ray gizmo


Nothing here.

Quick Start

  1. Clone repository into the Assets folder.
  2. Select game object in the hierarchy window and from the Component menu select CollisionFromRaycast to add component to the selected game object.
  3. Set options and add callback action. Your callback method can take a RaycastHit as an argument. Hit play and when a collision is detected, the callback action will be executed.


Just create an issue and I’ll do my best to help.


Pull requests, ideas, questions or any feedback at all are welcome.


Example: v0.2.3f1

  • 0 Introduces breaking changes.
  • 2 Major release. Adds new features.
  • 3 Minor release. Bug fixes and refactoring.
  • f1 Quick fix.
Show all projects by bartlomiejwolk