Easiest to help is if you provide a jsFiddle which shows your problem.
What do you wanna achieve?
what is wallHitBoxes
?
Try to use Box3. Note this post
let bbox = new THREE.Box3().setFromObject(planeMesh)
let size = new THREE.Vector3()
bbox.getSize(size)