I am new to sceneform sdk for Android . Currently i am working on a demo in which i have to replace node on the same position of other one, it is working perfectly if both node renderables have the same size and scale. But not working when both nodes have different sizes.
Please check below scenario:
As From images What i did is, first added one renderable node(which is bigger in size) .Now i want to add other node(which is smaller) on same position of first one but what happens is, the second object placed on the center of first one. I need it to be placed on the right most side of first object as i displayed in second image.Here is code for replacement of objects:
Vector3 indicatorOnePosition = indicatorOneNode.getLocalPosition(); // where indicatorOneNode is first object
Quaternion indicatorOneRotation = indicatorOneNode.getLocalRotation(); // getting rotation of first object
Node secondNode = new Node();
secondNode.setLocalPosition(indicatorOnePosition);
secondNode.setLocalRotation(indicatorOneRotation);
Can I do something to 'fix' this?