Merge remote-tracking branch 'origin/master'

This commit is contained in:
SpencerPiha
2023-01-29 12:10:19 -06:00

View File

@@ -79,7 +79,7 @@ public class Move extends CyberarmState {
if (Math.abs(travelledDistance) < easeInDistance) {
ratio = travelledDistance / easeInDistance;
} else if (Math.abs(travelledDistance) > targetDistance - easeOutDistance) {
ratio = 1.0 - ((targetDistance - Math.abs(travelledDistance)) / easeOutDistance);
ratio = (targetDistance - Math.abs(travelledDistance)) / easeOutDistance;
}
easeVelocity = targetVelocity * ratio;