Hi Pärtel,
I’m looking to create a robot arm sort of thing, and have been having problems implementing my idea.
I’m trying to make a robot arm that mimics the positioning of a VR controller (rotation and position), and my idea to create this solution was to have there be two targets, one where the “wrist” would be, (just a point directly behind the grab-able object) and one where the “claw” would be.
The end goal would be to have a robot that can pick up, rotate, and move objects, all while having joints only move one rotation axis. So far, I’ve only seen IK examples that ignore the rotation of the target.
For example, if there were 5 joints, the first three joints would find and track the position of the wrist, and the other two joints would track the claw, enabling the claw to rotate/reposition objects.
I’ve tried to use some of your systems, but cannot find a cohesive solution to the two-target implementation.
Using this package, I’ve created some sorts of robot arms trying to combine different IK systems, (like one IK system to the wrist, then another IK system from the wrist to the fingers) but they either glitch out, track poorly, or certain joints fail to rotate on one axis.

This is a rough test of what I currently have using aimIK, where the blue sphere is the first target, and the yellow is the second target. (I assume aimIK isn’t the best solution to a problem like this, but its the one that worked out the best so far)
What I’d like to have is the blue sphere being tracked as well as the yellow.
With the red arm/line to line up with the yellow target, aligned with the darker line like this:
With my current implementation, the yellow sphere isn’t being intersected correctly when rotating, and also comes with tons of strange movements of the arm when moving the targets around. I think the problem has to do with me using two IK systems, and them interacting badly with each other. Everything up until the wrist works fine.
So, my question is, is there somewhere in this package that would allow me to easily track two targets like I described? Or, if not, how would you go about implementing an IK system to track the target’s rotation?
Thanks!









