mirror of
https://github.com/TimeCrafters/FTC_2022
synced 2025-12-15 20:12:35 +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) {
|
if (Math.abs(travelledDistance) < easeInDistance) {
|
||||||
ratio = travelledDistance / easeInDistance;
|
ratio = travelledDistance / easeInDistance;
|
||||||
} else if (Math.abs(travelledDistance) > targetDistance - easeOutDistance) {
|
} else if (Math.abs(travelledDistance) > targetDistance - easeOutDistance) {
|
||||||
ratio = 1.0 - ((targetDistance - Math.abs(travelledDistance)) / easeOutDistance);
|
ratio = (targetDistance - Math.abs(travelledDistance)) / easeOutDistance;
|
||||||
}
|
}
|
||||||
|
|
||||||
easeVelocity = targetVelocity * ratio;
|
easeVelocity = targetVelocity * ratio;
|
||||||
|
|||||||
Reference in New Issue
Block a user