Struct ReduceTask
The reduce task accepts a list of animation pose sequences and a reference animation pose as its inputs. It outputs the animation pose from the input pose sequence that is most similar to the reference animation pose. A trajectory can optionally be supplied as an additional constraint.
Namespace: Unity.Kinematica
Syntax
[Data("Reduce", "#2A3756", DataType.Flag.None)]
public struct ReduceTask : Task
Fields
responsiveness
Denotes a value between 0 and 1 that controls the relative weight between poses and trajectories.
Declaration
[Property(null)]
public float responsiveness
Field Value
Type | Description |
---|---|
Single |
Methods
Execute()
Execute method for the reduce task.
Declaration
public Result Execute()
Returns
Type | Description |
---|---|
Result | Returns true if the output time index is valid; false otherwise. |
Implements
Remarks
The reduce task accepts a list of animation pose sequences and a reference animation pose as its inputs. It outputs the animation pose from the input pose sequence that is most similar to the reference animation pose. A trajectory can optionally be supplied as an additional constraint.
ExecuteSelf(ref TaskRef)
Surrogate method for automatic task execution.
Declaration
public static Result ExecuteSelf(ref TaskRef self)
Parameters
Type | Name | Description |
---|---|---|
TaskRef | self | Task reference that is supposed to be executed. |
Returns
Type | Description |
---|---|
Result | Result of the task execution. |