ScratchData LogoScratchData
Back to josephcode's profile

Inverse Kinematics

JOjosephcode•Created July 17, 2022
Inverse Kinematics
0
0
8 views
View on Scratch

Instructions

Click the flag two or three times to reset, but I don't use it to run. Controls are WASD. Pressing the buttons move the tip in the corresponding direction. Press "F" to active Mouse control mode, and press "G" to deactivate it. Then it will follow your mouse as long as it is above the middle. If you go below the middle, the arm will mirror your controls. The arm itself technically can go below the middle, but I set up some parameters that prevent the arm from trying to do anything it can't do, and in my case would include any part of the arm going below the ground. Unless you're in mouse control mode, in which case, there are no parameters.

Description

Each arm only knows it's position relative to the arm it's attached to. The equations inside take the X and Y input, and turn it into degrees for each join to turn to. I'm not going to explain past that, but I think it's fun to play with. Maybe you don't, but you also don't have to be here.

Project Details

Project ID714946168
CreatedJuly 17, 2022
Last ModifiedJuly 19, 2022
SharedJuly 18, 2022
Visibilityvisible
CommentsAllowed