Tagged: count, drag rotate
- This topic has 4 replies, 3 voices, and was last updated 4 years ago by
lichtundschatten.
-
AuthorPosts
-
2021-11-24 at 10:16 am #47194
lichtundschattenCustomerIs 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 Animation2021-11-24 at 2:42 pm #47201
Yuri KovelenovStaffSure, you can use variable puzzles for that: https://www.soft8soft.com/docs/manual/en/puzzles/Variables.html
2021-11-24 at 4:19 pm #47207
lichtundschattenCustomerHi 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 Animation2021-11-25 at 5:28 am #47216
GLiFTeKCustomerHi,
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.Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2021-11-25 at 11:12 am #47229
lichtundschattenCustomerHi 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 -
AuthorPosts
- You must be logged in to reply to this topic.
