edx/assignment10final/Assets/Scripts/DebugRay.cs
2022-11-10 21:56:29 -03:00

14 lines
345 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DebugRay : MonoBehaviour {
// Update is called once per frame
void Update () {
// simply draws a ray going from a point in a direction
Debug.DrawRay(transform.position, transform.TransformDirection(Vector3.forward) * 1000, Color.red);
}
}