Hey, I want to make a lock which can be unlocked when password is right. But now I face a problem. In this picture, player should rotate lock to the right number. I do not know how to judge the number player rotate such as how to identify ‘1’ instead of others. Is there any course? Thank you!
Is it a combination lock, meaning each dial with 3 discs, or just a specific number per dial?
Hi,
Here is something to get you in the right direction:
All you need is finding the right angle to feed it, but I don’t how you mesh is oriented. It could be as simple as taking the rotation from the right axis. What I’ve made here is somethhing that work if an angle of zero is the digit 0, and 90° would be 25, -90° would be 75.
You could also create the rotation pretty easily but hard to show you how without more info about your setup.
Then it’s only a mater of checking when the direction of rotation changes (number starts increasing or decreasing) to know the player inputed number.
OK, what I want to rotate is the disk of the lock. I will try it soon. if there are any question, I will connect to you. Thank you for your reply!