Thank you arras,
Your code works great, it saved me a lot of time. I used it to make limbs of a character always fall towards the ground. I have given you full credit in the source.
Turn to target in 3D
They are separate nodes in a parenting chain. Pelvis being the grand parent of all. I've avoided skinned mesh so far. The target is placed far below the ground like at (0,-10000,0).
Actually, the best solution for this would be to use a physics engine, but right now I feel too lazy to explore that, and your code is only 3-4 lines in the main loop, giving the same effect.
Actually, the best solution for this would be to use a physics engine, but right now I feel too lazy to explore that, and your code is only 3-4 lines in the main loop, giving the same effect.