edx/assignment10final/Assets/Scripts/DebugRay.cs

14 lines
345 B
C#
Raw Normal View History

2022-11-10 21:56:29 -03:00
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);
}
}