Question by
LifeEd2020 · Jul 17, 2020 at 03:39 PM ·
interactionscriptable object
Leap Motion Hand & Unity Interaction Engine - Why isn't my Move script working on ContactEnd() event?
Background: I'm very new to Unity and C# scripting. I'm using Leap Motion Hand and Interaction Engine module. I successfully imported the Interaction Engine. Here's my pseudo code for what I'm trying to do: (Please refer to attached Slide 1 and Slide 2.)
Step 1. Create a cube on the scene.
Step 2. On ContactBegin(_), change the color of Cube.
Step 3. On ContactEnd(), move the position of the cube by using Move script. User will then have to touch the cube in the new position.
Step 4. Keep moving the cube to a new position every time it’s being touched. Repeat 10 times.
Step 5. Measure the elapsed time between the very first touch on the first location of the cube to the very last one.
slide1.png
(20.7 kB)
slide2.png
(245.1 kB)
Comment