A method, comprising: operably coupling a first electronic device with a second electronic device so that the first electronic device and the second electronic device are in communication with each other while operating in an ambient environment, the second electronic device being a head mounted display device used by a user and configured to generate and display a virtual environment while operating in the ambient environment, and the first electronic device being a handheld controller used by the user; tracking movement of the first electronic device relative to the second electronic device in a first mode, including: detecting, by a sensor of the first electronic device, at least one visual marker on the second electronic device, as the first electronic device moves independent of the second electronic device in the ambient environment; determining a location of the second electronic device relative to the first electronic device based on features detected in the at least one visual marker on the second electronic device and tracking movement of the first electronic device relative to the second electronic device in the ambient environment, including: calculating an inverse transform of the location of the second electronic device relative to the first electronic device to determine a location of the first electronic device relative to the second electronic device, and comparing a current location of the first electronic device relative to the second electronic device to a previous location of the first electronic device relative to the second electronic device to track movement of the first electronic device relative to the second electronic device; and translating the detected and tracked movement of the first electronic device relative to the second electronic device in the ambient environment into a corresponding action in the virtual environment. operably coupling a first electronic device with a second electronic device so that the first electronic device and the second electronic device are in communication with each other while operating in an ambient environment, the second electronic device being a head mounted display device used by a user and configured to generate and display a virtual environment while operating in the ambient environment, and the first electronic device being a handheld controller used by the user; tracking movement of the first electronic device relative to the second electronic device in a first mode, including: detecting, by a sensor of the first electronic device, at least one visual marker on the second electronic device, as the first electronic device moves independent of the second electronic device in the ambient environment; determining a location of the second electronic device relative to the first electronic device based on features detected in the at least one visual marker on the second electronic device and tracking movement of the first electronic device relative to the second electronic device in the ambient environment, including: calculating an inverse transform of the location of the second electronic device relative to the first electronic device to determine a location of the first electronic device relative to the second electronic device, and comparing a current location of the first electronic device relative to the second electronic device to a previous location of the first electronic device relative to the second electronic device to track movement of the first electronic device relative to the second electronic device; and detecting, by a sensor of the first electronic device, at least one visual marker on the second electronic device, as the first electronic device moves independent of the second electronic device in the ambient environment; determining a location of the second electronic device relative to the first electronic device based on features detected in the at least one visual marker on the second electronic device and tracking movement of the first electronic device relative to the second electronic device in the ambient environment, including: calculating an inverse transform of the location of the second electronic device relative to the first electronic device to determine a location of the first electronic device relative to the second electronic device, and comparing a current location of the first electronic device relative to the second electronic device to a previous location of the first electronic device relative to the second electronic device to track movement of the first electronic device relative to the second electronic device; and calculating an inverse transform of the location of the second electronic device relative to the first electronic device to determine a location of the first electronic device relative to the second electronic device, and comparing a current location of the first electronic device relative to the second electronic device to a previous location of the first electronic device relative to the second electronic device to track movement of the first electronic device relative to the second electronic device; and translating the detected and tracked movement of the first electronic device relative to the second electronic device in the ambient environment into a corresponding action in the virtual environment.