Home Questions Hand in moving target

Hand in moving target

DWQA QuestionsCategory: KINARM End-Point LabHand in moving target
Rauf Iftikhar asked 1 year ago
I used the sample moving target task to build my own custom task with a moving target, however I would like to have the target change states (color) when the hand is in/out of the target. Currently, the HandInTarget boolean is only true when the hand is in the initially defined position of the target from the target table, not in the instantaneous moving position of the target.
1 Answers
Koloman Varady Staff answered 1 year ago

Hi Rauf,

You can unlink the HandInTarget block from the library and modify it so that instead of using the Target Table position it uses the current position of the target (as stored in its vcode).

An example of that is inside our visuomotor rotation sample task: https://kinarm.com/task/visuomotor-rotation-task/

Cheers,
Koloman