Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniMacaroni committed Apr 14, 2020
1 parent 76b8183 commit bbc2ac8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions TrickSaber/Tricks/ThrowTrick.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ public class ThrowTrick : Trick
private float _saberRotSpeed;
private float _velocityMultiplier = 1;

private GameObject _vrGameCore;

public override TrickAction TrickAction => TrickAction.Throw;

public override void OnTrickStart()
Expand All @@ -23,8 +21,6 @@ public override void OnTrickStart()
_saberRotSpeed = MovementController.SaberSpeed * _velocityMultiplier;
if (MovementController.AngularVelocity.x > 0) _saberRotSpeed *= 150;
else _saberRotSpeed *= -150;
//if (PluginConfig.Instance.SlowmoDuringThrow) _saberRotSpeed *= PluginConfig.Instance.SlowmoMultiplier;
//SaberTrickModel.Rigidbody.angularVelocity = Vector3.zero;
SaberTrickModel.Rigidbody.AddRelativeTorque(Vector3.right * _saberRotSpeed, ForceMode.Acceleration);
}

Expand All @@ -42,7 +38,6 @@ public override void OnInit()
{
_controllerSnapThreshold = PluginConfig.Instance.ControllerSnapThreshold;
_velocityMultiplier = PluginConfig.Instance.ThrowVelocity;
_vrGameCore = GameObject.Find("VRGameCore");
}

public IEnumerator ReturnSaber(float speed)
Expand Down

0 comments on commit bbc2ac8

Please sign in to comment.