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.

Count drag rotate full rotations

Home Forums Puzzles Count drag rotate full rotations

Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #47194

    Is it possilbe to count the rotations (positiv and negative) when a user rotates an object on one axis? I use the drag rotate puzzle, so the user can rotate a crank, but after a full rotate between -180 and 180 degrees, I loose the information whether the rotation goes on. Maybe I can count into a variable everytime the full rotation has happend?

    Thank you for your help and best regards!

    Licht und Schatten Rendering GmbH
    Studio für Rendering und Animation

    #47201

    Sure, you can use variable puzzles for that: https://www.soft8soft.com/docs/manual/en/puzzles/Variables.html

    Chief 3D Verger | LinkedIn | Twitter

    #47207

    Hi Yuri,
    thank you for your quick reply. Yes, I know about the variable puzzle and wanted to use it, but I don’t know how I can trigger a +1 or -1 from within the drag rotate, each time the full rotation happend, forward or backward. Sorry if I did not make it clear enough in the first question.

    Licht und Schatten Rendering GmbH
    Studio für Rendering und Animation

    #47216
    GLiFTeK
    Customer

    Hi,
    I think what yuri is talking about is the increase variable puzzle.
    Or You might use a plain variable puzzle with the updated value puzzle.

    #47229

    Hi GLiFTeK,
    but there is no trigger to do the increment at the right moment, thats my problem. At least I dont know it.
    Imagine a turntable, where the user can drag rotate the table clockwise and counter clockwise. When the rotation of the turntable reaches 180 degrees and the user still turns more, its rotation value start over again with -180 degrees. I need to increment right at that moment, when the rotation value resets/jumps. The user also might turn forward to 180 and then backward without oversteping the 180. In that case, no increment should happen.
    Maybe I miss something obvious?

    Licht und Schatten Rendering GmbH
    Studio für Rendering und Animation

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