Detecting VR Mode

How in code do I detect VR Mode?

We based project on FP C++ template and to get VR mode and preview working we needed to reduce the collision capsule size otherwise it felt like I was 12 feet tall.

But then running in non-vr mode you are scurrying around the floor.

Ideally at Runtime my character class would check the mode and set the capsule size to something appropriate.

Is there a better way to handle this?

Thanks

This is what i normally useā€¦


if ( GEngine->HMDDevice.IsValid() ) //check pointer is valid
{		
	if ( GEngine->HMDDevice->IsStereoEnabled() ) //check stereo enabled
	{
	//do stereo stuff
	}
}
else
{
//do other non stereo stuff
}
 

Thanks. That worked.