I'm developing an infinite runner android game, I want to create an object in a particular position. In the game, the player has to jump on the branches of trees to climb up. I want to create an object on particular height above a branch (at a specific X position).
All the branches will be created at viewporttop(). I'm able to create the object at specific Y position but I also want to create it at a position above a branch.