How to code the logic behind the bridge in the TumbleSeed ? Unity

75 Views Asked by At

I have tried to code the bridge like this .I have used RotateAround and set 2 points which is left and right point of the seesaw/bridge but when i rotate left and rotate right the x axis of the bridge ran off little by little eventually gone from the screen. Can anyone provide me the logic behind this ?

1

There are 1 best solutions below

0
AudioBubble On

I have solved this problem , when we rotatearound left point/right point the position x of the left/right point is moved so to solve that issues when rotating always set the position.x to 0 so that it will achieve the bridge in the TumbleSeed.