Search Unity

Is there a way to make the end effector of an object move in game mode using keyboard keys?

Discussion in 'Assets and Asset Store' started by nived02, Jul 25, 2019.

  1. nived02

    nived02

    Joined:
    Jul 22, 2019
    Posts:
    1
    Hello all,

    I am in development of a robot arm and I am using the CCD IK script of the Final IK toolbox to solve the inverse kinematics of the object's position as it is moving around. However, this movement only works for me when I am in scene mode but never in game mode. I figured that the best way to allow for this movement to happen was to try to map the end effector's movements to a script that changed the position every time I pressed a different arrow key; however, the script did not affect the end effector's position. Below is a picture of the object I made and its hierarchy (sphere 5 is the end effector and it is the bottom one on the chain) as well as the position script that I tried to implement. Also if you know a solution that uses a cursor instead that is fine as well. I am new to Unity so any help or words of advice would be greatly appreciated thank you.
     

    Attached Files: