using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.VFX; public class VectorFieldHandler : MonoBehaviour { [SerializeField] private float avoidanceDist; [SerializeField] private List avoidances; [SerializeField] private Vector3 size; private Texture3D vField; [SerializeField] private VisualEffect effect; // Start is called before the first frame update void Start() { vField = new Texture3D((int)size.x, (int)size.y, (int)size.z, TextureFormat.RFloat, 0); for(int x = 0;x