Avindr / MxM-IssueTracking

7 stars 0 forks source link

Reports of root motion issue with scaled characters #158

Closed Avindr closed 2 years ago

Avindr commented 2 years ago

Root motion may not be scaling appropriately for scaled characters. Further investigation required.

Avindr commented 2 years ago

The system is currently working as intended

The problem here is not with root motion but with trajectory transformation on a scaled character. The trajectory is effectively scaled down. Therefore, the MaxSpeed parameter on the trajectory generator also needs to be scaled up with the character.

To assist with this, I have added a Scale Adjustment paramter to the trajectory generator to help manage this without directly changing the MaxSpeed parameter. If this ScaleAdjustment is updated whenever the character scale changes, then the trajectory will automatically scale to compensate.