public Vector3 nodepoints;
public float size = 2;
/*
*Buncha other code
*/
for(int nP = 0; nP < nodePoints.Length; nP++)
{
Collider[] nearBy = Physics.OverlapSphere(nodePoints[nP], size, gameObject.layer);
print(nearBy.Length);
So basically this isn’t detecting anything, I’m confused as to why the overlapsphere isn’t finding anything while everything is within 2 units of that space.
The code runs through, I get ~4000 outputs of 0, but it never finds any other objects in the same layer, or any other infact, that is within radius.