How to make the piston remain in its place?

How to make the piston remain in its place? Preferably without using plugins. Surely only software to calculate the angle of rotation of the piston.

Parenting and LookAt.

I just started to learn Unity, you can find more details. About “Parenting” I understand.

You should Start here.

1 Like

Thank you, it worked!