I want to remove obstacle between points A and B.
I tried to use bhvtree but I have an error
import bpy
from mathutils.bvhtree import BVHTree
a = bpy.data.objects['a']
b = bpy.data.objects['b']
bvhtree = BVHTree.FromObject(a, b)
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
File "Text", line 6, in <module>
TypeError: expected 'Depsgraph' type found 'Object' instead
I don't know what is the Depsgraph type!