Object moving with camera


I’ve downloaded the SDK and followed your tutorial but, when i put an object in the scene. The object is attached to camera i.e. where i look the object will follow but, i want the object to stay where it is. Does require the ground plane as i just added the object to the hierarchy.



I need a little more information, what tracking engine do you use? ARCore / ARKit / Vuforia / something else?


I am using Vuforia


Alright, make sure the object is at the root of your hierarchy, so not inside the ARCamera or Aryzon object otherwise it will move with the camera. Also make sure you have entered your Vuforia developer key in the configuration file otherwise Vuforia will do nothing at all. And make sure to setup the Aryzon object to follow the transform of the ARCamera object by dragging it into the ‘transform to follow’ and select to follow Vuforia in the dropdown menu.


I have done that but it still doesn’t work. I have moved to your basic example, the example works in the editor however, on the phone the only thing displaying is the dot.


That’s strange, what type of phone are you developing on? I assume you have looked around, sometimes the object is ‘behind’ you. Does image target detection work? Unity does not give any errors are other warnings?


I am not using the image detector instead i am using the ground plane and just for testing as mentioned earlier. I have the ARCamera in the Aryzon prefab and following. I’ve put a cube in the hierarchy, not as a child of anything but just by itself. This is still following the camera, or maybe I misunderstood you when you said root of the hierarchy. I want to achieve something similar to the hexagon application (one of the AR appliaction of Aryzon).


I think ‘following the camera’ actually means the camera does not move at all. It is hard to check what is going on without seeing the actual project. Can you zip it and send it to me so I can have a look?


I see, okay thank you for your help Maarten, I’ve attached the project with a good drive link. :slightly_smiling_face:
Unity Project


I have tested the project on iOS and I see the issue you are having. I then created a new project with only Vuforia ARCamera and a cube. This project had the same error so this seems to be an issue with Vuforia.

I had to download Unity 2018.3.9 and update my Vuforia to be able to build your project. Sometimes things break when updating to the latest versions, I know, this sucks. Internally we have started using Unity Hub so we can test out new Unity and Vuforia builds before they are stable enough.

This problem seems to be out of our control, I can only suggest using an older version of Vuforia and / or Unity. We work with Unity 2018.3.0 and Vuforia 8.0.10.


Okay, i will downgrade and test.
Thank you so much for your help


No problem, hope you get it to run properly


It works to a certain degree. I’ve changed unity however, could not find a older version of Vuforia. But, I got the rotation to work using a simple gyroscope script. In other words, I’ve attached a gyro script to each camera and the rotation works.

I was wondering if you know anyway of getting the position, moving around the object?
would it be as simple as using:
var cameraPos = Camera.main.transform.position;

or is there a script in the SDKi could use?


You will need to use ARCore for Android or ARKit for iOS for positional tracking. Their sample Unity projects are quite clear. It’s pretty easy to add the Aryzon SDK but I’d suggest getting it to run without the Aryzon SDK first to see if your phone supports positional tracking.


Okay, I will have a go at ARCore. Once again thanks for your help!