Skip to content

Commit

Permalink
fix(DirectionModifier): allow RotationUpTarget to be set by method
Browse files Browse the repository at this point in the history
The RotationUpTarget property can now be set via a method passing
the enum index in as the parameter.
  • Loading branch information
thestonefox committed May 13, 2022
1 parent a18ece8 commit fd20d38
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Runtime/Tracking/Modification/DirectionModifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,15 @@ public virtual void ClearPivotOffset()
PivotOffset = default;
}

/// <summary>
/// Sets the <see cref="RotationUpTarget"/>.
/// </summary>
/// <param name="index">The index of the <see cref="RotationTargetType"/>.</param>
public virtual void SetRotationUpTarget(int index)
{
RotationUpTarget = EnumExtensions.GetByIndex<RotationTargetType>(index);
}

/// <summary>
/// Processes the current direction modification.
/// </summary>
Expand Down

0 comments on commit fd20d38

Please sign in to comment.