Skip to content

Commit

Permalink
Update vaulting
Browse files Browse the repository at this point in the history
- Bezier curve is adjusted for vault onto high
  • Loading branch information
selimnahimi committed Sep 9, 2023
1 parent 49bbc03 commit af4f84e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/pawn/PawnController.Vaulting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,15 @@ void ProgressVault()
{
// TODO: make smoother

// TODO: put this into a class or something
var startCurveSize = Vaulting == VaultType.OntoHigh ? 10f : 30f;
var endCurveSize = Vaulting == VaultType.OntoHigh ? -70f : 30f;

Vector3 pos = Bezier.Approach(
start: VaultStartPos,
end: VaultTargetPos,
curveSize: 30f,
startCurveSize: startCurveSize,
endCurveSize: endCurveSize,
t: bezierCounter
);

Expand Down

0 comments on commit af4f84e

Please sign in to comment.