Basically I’d during the Scene view displaying the intended area. I wrote script:
using UnityEngine;
using UnityEditor;
public class Turret : MonoBehaviour
{
[SerializeField] private float targetingRANGE = 6f;
[SerializeField] private Transform pointRotation;
private void OnDrawGizmosSelected()
{
Handles.color = Color.blue;
Handles.DrawWireDisc(transform.position, transform.forward, targetingRANGE);
}
}
but the gizmo drawn (blue circle) doesn’t look correctly following the proper coordinates; following a screenshot:
I attached this scipt to the Turret game object
mmm, I don’t understand what am I missing?
