Thanks for the answer.
I tried this but I have a problem.
The object of all is move the ball with the rotation of the paper. If I rotate to left, the ball goes to left, I rotate to right, the ball goes to right, rotate up, rotate down..... with this values I generate a vector and apply a force to move the ball.
The camera and the tracking paper is in movement, for this reason if I set the ARCamera to None, it doesn't work.
I have to track the camera (my iphone in one hand), and the tracking marker (a peace of paper with the mark in my other hand).
First I have a lot of test, for logging the rotation degrees of the camera, with the AUTO option, and there are several times that give me the rotation of camera, and sometimes, the rotation of the marker (I think.. because the values are varying a lot of..270, 274, 280, 20, ?¿?, for this I think that it give me this values..)
Then I try with the NONE option, and ok, if I put the camera totally perpendicular to the marker in vertical, is the "point 0" of the tracking, and I say "eureka" it works... but not.. because if I move the camera and my marker is for example on the table (static) (remember.. iphone in my hand...), the rotation values change, and then give me values that don't works.
The question is.. :) how can I tracking both (I suppose that I have to tracking both ?¿), but that only affects the rotation of the marker to the ball?
Thanks, thanks and another time thanks for your help.
Alvaro
The QCAR Unity extension takes care of moving trackable objects in relation to the AR Camera. It does this by changing the transform of the trackable object and/or the camera. You can change which objects are held still in relation to others via the World Center Mode setting on the AR Camera:
AUTO:
The first trackable found is used to move the camera (i.e. the trackable stays still in the scene while the camera moves around it). All other trackables are then moved in relation to the camera.
USER:
Same as above, but you can select a single trackable to act as the world center, and it never moves in the scene.
NONE:
The camera never moves, instead all the trackables move around it.
So if you wanted to move the camera around and make sure QCAR didn't move it you would use the NONE setting.
- Kim