Professional Documents
Culture Documents
Code Diagram c128
Code Diagram c128
Code Diagram c128
So in the code we will set the speed as normal, and in the next class we will learn how to change the speed as the movement of the right
hand wrist.
Output -
● Define 2 variables for holding x and y coordinates of the leftWrist and initialize with a value of 0, define
these variable at the beginning on main.js file
● Code for fetching the x coordinate of the leftWrist and update leftWristX variable
● Code for fetching the y coordinate of the leftWrist and update leftWristY variable
● Now console these two variables
Output -
● Define 2 variables for holding x and y coordinates of the leftWrist and initialize with a value of 0, define
these variable at the beginning on main.js file
● Code for fetching the x coordinate of the leftWrist and update leftWristX variable
● Code for fetching the y coordinate of the leftWrist and update leftWristY variable
Output -