Don't allow teleport through movable doors

Hi,

I’m using the default VR template from UE 4.14, and I have set up a door that is movable and when I try to teleport it allows to teleport behind the door (because I’ve set up a navmesh behind the door also). How can I limit the teleport if the door is closed?

Thanks

Raycast from your to final position, if door is hit then cancel teleport