#1
|
|||
|
|||
How to reverse link direction
I have an inertiacube linked to a model using the following code:
Code:
ori = add('intersense.dls') orilink = link(ori,model) inertiacube away from me the top of the model rotates toward me? I want the yaw and roll to remain unchanged. |
#2
|
|||
|
|||
There is no built-in link operator that can perform this inversion. However, the following code should work:
Code:
def InvertPitch(n): euler = n.getEuler() euler[1] = -euler[1] n.setEuler(euler) vizact.onupdate(viz.PRIORITY_LINKS+1,InvertPitch,node) |
|
|