Query SceneManager to locate center of floor?
Hi, Firstly I am not an experienced developer but I have messed around a bit in Unity with VR in the past.
I have just put together a simple mixed-reality demo that essentially gives me an RC car that I can drive around the room. I am using the SceneManger with the Plane and Volume prefab loaded so the car hits the furniture.
But currently, when I start my demo the car is spawned in mid-air and then falls to the floor. I would like to actually spawn the car at floor level and in the center of my room. I've searched around for sample code but haven't found anything that matches this requirement yet.
Good someone point me in the right direction of querying the scene manager to get information about the floor plane so I can get the coordinates of the center and then spawn my vehicle in this location?
Thanks in advance for any help 🙂
