Open topic with navigation
<link>.lookAtLinkable
Create operator that will look at a linkable position
<link>.lookAtLinkable( |
|
linkable |
flag = 0 |
priority = 0 |
target = viz.LINK_FULL_OP |
) |
|
linkable
Linkable object providing the position to look at
flag = 0
The flag to use when retrieving linkable values. See
<link>.setSrcFlag for list of possible values.
priority = 0
Priority of operator
target = viz.LINK_FULL_OP
One of the following values:
viz.LINK_FULL_OP | The operator will be applied to combined data of the link. |
viz.LINK_POS_OP | The operator will be applied to position data of the link. |
viz.LINK_ORI_OP | The operator will be applied to orientation data of the link. |
Remarks
This command will create an operator that will rotate the input matrix to point towards the position of the specified linkable. The flag value is used when retrieving the position value from the linkable.
Return Value
Operator object