Skip to content

Instantly share code, notes, and snippets.

@IJEMIN
IJEMIN / RayByAngle.cs
Created January 20, 2018 12:07
How to Raycast by Angle in Unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RayByAngle : MonoBehaviour {
public float angle;
public float distance = 1f;
// Update is called once per frame