Skip to content

Commit

Permalink
Fix typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
tryuan99 committed Jan 4, 2025
1 parent db86939 commit 4af4345
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assets/Scripts/Interceptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected override void UpdateBoost(double deltaTime) {
Vector3 boostAccelerationVector = boostAcceleration * transform.forward;

// Add PN acceleration to boost acceleration
Vector3 controllerAcceleration = CalcualteAccelerationInput(deltaTime);
Vector3 controllerAcceleration = CalculateAccelerationInput(deltaTime);
Vector3 accelerationInput = boostAccelerationVector + controllerAcceleration;

// Calculate the total acceleration
Expand All @@ -68,14 +68,14 @@ protected override void UpdateMidCourse(double deltaTime) {
UpdateMissileTrailEffect();

_elapsedTime += deltaTime;
Vector3 accelerationInput = CalcualteAccelerationInput(deltaTime);
Vector3 accelerationInput = CalculateAccelerationInput(deltaTime);

// Calculate and set the total acceleration
Vector3 acceleration = CalculateAcceleration(accelerationInput);
GetComponent<Rigidbody>().AddForce(acceleration, ForceMode.Acceleration);
}

private Vector3 CalcualteAccelerationInput(double deltaTime) {
private Vector3 CalculateAccelerationInput(double deltaTime) {
if (!HasAssignedTarget()) {
return Vector3.zero;
}
Expand Down

0 comments on commit 4af4345

Please sign in to comment.