I want to do something that I thought was simple but doesn't seem to be in reality.
I need to register the position of a marker in relation to a second marker. This position is stored and can be loaded later on and represented by an object. To do that, I calculate the Delta in position and rotation between two objects which are respectively children of both markers. (Each object models one marker's position and rotation)
Delta_pos = Obj1_pos - Obj2_pos;
Delta_rot = Obj1_quaternion * Quaternion.Inverse(Obj2_quaternion);
When I load my file, I place a third object on the desired location thanks to this calculation :
transform.position = Obj1 + Delta_pos;
transform.rotation = Delta_rot* Obj1_quaternion;
But with this code, it's not working, and the object is not always loaded in the good place (but sometimes yes). I'm pretty sure, there is an easy answer to this issue but i'm not familiar with the coordinates in Vuforia. Thank you in advance to the people who can help me !