0
$\begingroup$

I have a modeled SCARA robot in blender, this is moved through the use of a sensor and a python program. The problem now is that my inverse kinematics solved angle does not coincide in run in blender. One possible solution is that assignment of local coordinates in the joints.

Is there someone here can help me out with this problem? It will help a lot. Thanks!

$\endgroup$
  • $\begingroup$ Are you talking about Blender or about a BGE game? $\endgroup$ – Monster May 22 '18 at 7:05
  • $\begingroup$ Yes about bge game $\endgroup$ – Aie-Aie Aspe May 23 '18 at 8:39
0
$\begingroup$

Within the BGE the (parent)-local coordinates can be read and set via KX_GameObject.localPosition.

When you want to read/modify the orientaion you can use KX_GameObject.localOrientation. Be aware it is a matrix.

If there is no parent, the local coordinates match the world coordinates.

$\endgroup$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.