Hi,
I’m using Python in Editor to perfrom clash detection, the key function as below:
def check_point_data(array,px,py,pz,xx,yy,zz,box):
point_to_check = unreal.Vector(px,py,pz)
small_extent = unreal.Vector(box, box, box)
world = unreal.get_editor_subsystem(unreal.UnrealEditorSubsystem).get_editor_world()
object_types = [unreal.ObjectTypeQuery.OBJECT_TYPE_QUERY1,unreal.ObjectTypeQuery.OBJECT_TYPE_QUERY2,unreal.ObjectTypeQuery.OBJECT_TYPE_QUERY3,unreal.ObjectTypeQuery.OBJECT_TYPE_QUERY4,unreal.ObjectTypeQuery.OBJECT_TYPE_QUERY5,unreal.ObjectTypeQuery.OBJECT_TYPE_QUERY6]
overlap_results = unreal.SystemLibrary.box_overlap_actors(
world,
point_to_check,
small_extent,
object_types,
None,
[]
)
The problem is I need to run this againt billions of points, but the current script only uses 1 CPU core. Is there a way to do that with multiple CPU cores?
Thanks