I have a knee joint, when it bends, I need a empty to move in and out on a local axis based on the value of the local rotation of the knee.

in blender game with polling it would look like this

Empty.worldPosition = Empty.parent.worldWorldPosition+(Empty.parent.worldOrienation.col[1]*(variable based on local Rot))

How can I do the same with a driver so I don't need to Poll angles?

  • $\begingroup$ Did you try using a the 'Rotational Difference' driver option? $\endgroup$ – ideasman42 May 6 '16 at 19:14
  • $\begingroup$ The variable I need is known, the setting of the local position using a driver is not* $\endgroup$ – BluePrintRandom May 6 '16 at 19:15
  • $\begingroup$ Empty.worldPosition = Empty.parent.worldWorldPosition+(Empty.parent.worldOrientation.col[1]*(variable based on local Rot)) is the part I don't know how to do with a driver* $\endgroup$ – BluePrintRandom May 6 '16 at 19:17
  • $\begingroup$ (*Set the local position based on the variable collected) $\endgroup$ – BluePrintRandom May 6 '16 at 19:18
  • $\begingroup$ pasteall.org/blend/41736 here is a test file I know I can use a IK stretch to constraint, but I have some cyclic dependencies when using 2 hydraulics connecting at a unknown point in space * $\endgroup$ – BluePrintRandom May 6 '16 at 19:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.