Function VisualServerSingleton.instancesCullRay

Returns an array of object IDs intersecting with the provided 3D ray. Only visual 3D nodes are considered, such as MeshInstance or DirectionalLight. Use @GDScript.instanceFromId to obtain the actual nodes. A scenario RID must be provided, which is available in the World you want to query. This forces an update for all resources queued to update. Warning: This function is primarily intended for editor usage. For in-game use cases, prefer physics collision.

Array instancesCullRay (
  const(Vector3) from,
  const(Vector3) to,
  const(RID) scenario = RID(godot_rid(0LU))
) nothrow @nogc const;