We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Puzzled

Home Forums Puzzles Puzzled

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5450
    rezman
    Customer

    Hey there. I’m really confused on how to set up a particular puzzle logic combination. Here is the scenario:

    I have a seat that has three positions.
    -Stowed
    -Seating
    -Sleeping

    I would like to have three buttons that set these positions.
    -Click stowed, it moves to stowed
    -Click seating, it moves to seating
    -Click sleeping, it moves to sleeping

    Here’s where it get’s tricky.
    -Upon loading the seat is set to “seating” If you click stowed, I’d like it to animate to “stowed”. If you click “sleeping”, I’d like it to animate to “sleeping”.
    AND, if it is in stowed position and you click “sleeping”, I’d like it to animate to “sleeping”. And so on…

    I hope this makes sense.

    #5452

    Hi,
    Lets suppose you created animations for bringing the seat from either of starting positions to a target position:
    Stowed -> Seating
    Stowed -> Sleeping
    Seating -> Stowed
    Seating -> Sleeping
    Sleeping -> Seating
    Sleeping -> Stowed

    I’d recommend to create a variable called seat_status for example. Then, you can set it to “seating”, “stowed” or “sleeping” depending on how your seat is positioned.

    Finally, you can check this variable using the “if…elseif…else” puzzle and choose the right animation to trigger.

    The most close example to this is our recliner demo. Although it only offers 2 positions I assume you can extend it to fit your needs.

    Chief 3D Verger | LinkedIn | Twitter

    #5479
    rezman
    Customer

    Thanks again Yuri! As usual spot on!!
    Here’s the puzzle I ended up with.

    #5481

    Great it worked for you!

    Chief 3D Verger | LinkedIn | Twitter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.