mirror of
https://github.com/TimeCrafters/FTC_2022
synced 2025-12-13 06:22:33 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user