I had a question about moving an object to a unit. I have a platform that can ride on 2 guides (one in the nose of the platform, a friend in the back). And here is the question I need to have when you lowered the back of the platform so that the front was stationary, and vice versa. That is, two movements move and rotate at the same time. Maybe someone knows how to implement it.

    1 answer 1

    2 GameObjects that can be moved (guides)
    2 GameObjects on the platform itself
    the script aligns all 4 points to one line

    if you want the platform not to hang "in the air" between the guides
    at least one of the points of the platform must be fixed on the guide