Detect collisions from specific static3d nodes

Godot Version



I have a static3d node that scale up and need to detect all other static3d nodes that collide with it in the process. How can i achieve this?

Came to this so far. Appreciate any help

			var space_state = get_world_3d().direct_space_state
			var shape = PhysicsServer3D.sphere_shape_create() # using sphere shape but need to set a custom shape based on a static3d/collision shape node
			var query =
			query.shape_rid = shape
			query.collision_mask = 2
			query.margin = 0.01
			var result = space_state.intersect_shape(query)
			if result:
				print(result) # Couldn't access the values of the dict