Log in or register to post comments

How to set Vuforia to not change the vertical orientation of the targets in the Unity space/scene?

Unity Editor
September 21, 2022 - 7:11am #1

Hello Everyone,

I'm developing an AR app with Image Targes in Unity.

Those Image targets are positioned vertically on the wall in the museum's room - the real world and in the Unity scene.

When the target is detected, I would like to incorporate some gravity/particle interaction which is parallel to the target (e.g. person from the painting drops the apple or fireworks shoots upwards beside the vertical painting and explode with the gravity pulling particles down on the Y-axis towards the ground ).

I positioned the Vuforia Image target vertically in Unity (Y-axis as Up). Still, whenever the target is detected, it is automatically rotated horizontally (onto X-Z plane) in the Unity scene by Vuforia (camera automatically facing "down" in the Unity Space, like watching down on the book on the table), which interferes with Unity 2D/3D Physic which takes Y-axis as Up/Down. As a result, we have a situation when the image target is triggered on the wall, and the object (e.g. apple in the painting on the wall) is pulled by gravity back into the wall instead of down towards the floor.

How to set Vuforia to not change the vertical orientation of the targets in the Unity space/scene?

Basically, the Image Target in the scene should remain not change rotation, and the AR camera should rotate around it, vs. current behaviour; that is, the Image target is "put down on the table", and the camera is rotating around it.

I've been searching for the solution for days, but I can't find it. I'm pretty sure there has to be a way, and it is probably also an obvious and easy one, but I just can't find it.

Can someone please help me out?



Kind regards.

Platform: 

How to set Vuforia to not change the vertical orientation of the targets in the Unity space/scene?

September 24, 2022 - 12:48am #2

Searching for same information, did you already find anything useful? Check custom coursework for more information to help with study.

Log in or register to post comments