Convert normal from scene.pick to arc camera position so camera is in front of face

Hi,

I’m wanting to be able to click on a point/face of a mesh and the camera moves to the front of that mesh - my plan was to use the normal value, I just can’t figure out the math

So have a have:

scene.camera.setTarget(picked.pickedPoint)

Which gets the camera focused on the right point but it’s just moving it so it’s at the correct angle (in front of the face)

Any help at all would be much appreciated.

Cheers

I’ve tried hard values and it works okay. But won’t work for non-cube objects

https://playground.babylonjs.com/#LPIJNN