TargetPrimitive¶
-
class
guerilla.
TargetPrimitive
¶ Bases:
guerilla.Locator
This class is the base for objects that can aim at a given position
-
gettargetdistance
()¶ Returns the target distance in local space
Returns: The target distance Return type: number
-
gettargetposition
()¶ Returns the position of the target in local space
Returns: The target position Return type: point3
-
gettargetworldposition
()¶ Returns the target position in world space
Returns: The target position Return type: point3
-
getworlddirection
()¶ Returns the direction to target in world space
Returns: The target direction Return type: point3
-
getworldmatrixorient
()¶ Returns the local to world matrix of this node oriented on the Z axis according to the DirectionMode plug.
Returns: The Z oriented node matrix Return type: matrix
-
getworldtolocalmatrixorient
()¶ Returns the world to local matrix of this node oriented on the Z axis according to the DirectionMode plug.
Returns: The Z oriented node matrix Return type: matrix
-
getworldtransformorient
()¶ Returns the local to world transform of this node oriented on the Z axis according to the DirectionMode plug.
Returns: The Z oriented node transform Return type: transform
-
setworldpositiontargetup
(position, target, up)¶ Sets the world position, target and up vector of the node
Parameters:
-