paya.runtime.nodes.MotionPath#
- class MotionPath(*args, **kwargs)#
Inheritance
MotionPath
DependNode
DependNode
PyNode
ProxyUnicode
- configFollow(frontAxis, upAxis, worldUpVector=None, worldUpObject=None)#
Performs quick configuration of follow options. If no ‘up’ hints are provided, the curve normal is used. All previous configuration is discarded.
- Parameters
frontAxis (str) – the axis aligned to the curve tangent, e.g. ‘-y’
upAxis (str) – the axis aligned to the resolved up vector, e.g. ‘x’
worldUpVector/wu (None, list, tuple, str,
Vector
) – if provided on its own, used forVector
mode; if combined with worldUpObject, used forObject Rotation
mode; defaults to NoneworldUpObject/wuo (None, str,
Transform
) – if provided on its own, used forObject Up
mode; if combined with worldUpVector, used forObject Rotation
mode; defaults to None
- Returns
self
- Return type
- setFrontAxis(axis)#
Convenience method. Sets frontAxis and inverseFront on the motionPath using a single argument.
- Parameters
axis (str) – the axis to set, for example ‘-y’
- Returns
self
- Return type
- setUpAxis(axis)#
Convenience method. Sets upAxis and inverseUp on the motionPath using a single argument.
- Parameters
axis (str) – the axis to set, for example ‘x’
- Returns
self
- Return type
- getFrontAxis()#
Note that this doesn’t check whether ‘follow’ is actually active on the node.
- Returns
The signed front axis, for example ‘-x’.
- Return type