Rotation/Transform Locked Objects With Leap Motion
I want to use the leap motion to open/close doors and open/close drawers. Is it possible to use the leap motion to interact and grab a specific area (like a door handle) and swing it open, but locked into the only rotation a door would open, and then stop where it should.
The same rules for sliding open a drawer, then sliding it back into place. Basically, is there a way to set the limits of where an object can be moved, transform and rotation.
I suppose this info would be helpful even without the leap motion, but if you have any info that would really help.
asked Oct 11 '17 at 04:02 PM in Blueprint Scripting
You can use physics constaints or vector mask, if you use scripts to move object. Physics constraints are pretty obvious, so I'll explain another approach. For example, you have to script a drawer. After asigning current shift (float), you can multiply it by vector mask and pass result to AddRelativeLocation. Vector mask is basically normalized vector with value == 0 on locked axis and value > 0 on unlocked axis. For example, (0,0,1) would move only up and down relatively.
answered Oct 12 '17 at 08:26 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here