Skip to content

Commit

Permalink
Apply formatting patch
Browse files Browse the repository at this point in the history
  • Loading branch information
MattGrayUL committed Aug 11, 2023
1 parent b23313a commit 2ea3624
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public override void OnInspectorGUI()
EditorGUILayout.PropertyField(serializedObject.FindProperty("m_Script"), true, new GUILayoutOption[0]);

GUI.enabled = true;
EditorGUILayout.LabelField("Bone States",EditorStyles.boldLabel);
EditorGUILayout.LabelField("Bone States", EditorStyles.boldLabel);
GUI.enabled = false;
EditorGUILayout.PropertyField(_isBoneHovering);
EditorGUILayout.PropertyField (_isBoneContacting);
EditorGUILayout.PropertyField(_isBoneContacting);
EditorGUILayout.PropertyField(_isBoneGrabbable);
EditorGUILayout.PropertyField(_isBoneGrabbing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private void GetProperties()
_teleportDistance = _handParameters.FindPropertyRelative("teleportDistance");

_boneMass = _handParameters.FindPropertyRelative("boneMass");
_boneStiffness = _handParameters.FindPropertyRelative("boneStiffness");
_boneStiffness = _handParameters.FindPropertyRelative("boneStiffness");
_boneForceLimit = _handParameters.FindPropertyRelative("boneForceLimit");

_maxPalmVel = _handParameters.FindPropertyRelative("maximumPalmVelocity");
Expand Down Expand Up @@ -127,7 +127,7 @@ public override void OnInspectorGUI()
private void WarningsSection()
{
// Provider
if(_inputProvider.objectReferenceValue == null)
if (_inputProvider.objectReferenceValue == null)
{
EditorGUILayout.BeginHorizontal();
EditorGUILayout.HelpBox($"You will need to assign an Input Leap Provider otherwise you will not have any hands.", MessageType.Warning);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public class PhysicsIgnoreHelpers : MonoBehaviour

public bool IsThisBoneIgnored(PhysicsBone bone)
{
if(bone == null)
if (bone == null)
return false;
if(DisableAllHandCollisions)
if (DisableAllHandCollisions)
return true;
if (DisableSpecificHandCollisions && DisabledHandedness == bone.Hand.Handedness)
return true;
Expand All @@ -35,11 +35,11 @@ public bool IsThisBoneIgnored(PhysicsBone bone)

public bool IsThisHandIgnored(PhysicsHand hand)
{
if(hand == null)
if (hand == null)
return false;
if (DisableAllHandCollisions)
return true;
if(DisableSpecificHandCollisions && DisabledHandedness == hand.Handedness)
if (DisableSpecificHandCollisions && DisabledHandedness == hand.Handedness)
return true;
return false;
}
Expand All @@ -56,7 +56,7 @@ private void DisableBoneCollisions(Collision collision)
{
if (collision.gameObject != null && collision.gameObject.TryGetComponent<PhysicsBone>(out var temp))
{
if(!IsThisBoneIgnored(temp))
if (!IsThisBoneIgnored(temp))
{
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static float MaxVec3(Vector3 v)

public static bool ContainsRange<T>(this T[] arr, T value, int maxIndex)
{
return System.Array.IndexOf(arr, value,0, maxIndex) != -1;
return System.Array.IndexOf(arr, value, 0, maxIndex) != -1;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void Decode(Hand intoHand)
prevJoint = ToWorld(prevJoint, palmPos, palmRot);
boneRot = palmRot * boneRot;

if(fingerIdx == 0 && boneIdx == 0)
if (fingerIdx == 0 && boneIdx == 0)
{
boneRot *= ThumbMetacarpalRotationOffset[intoHand.IsLeft ? 0 : 1];
}
Expand Down

0 comments on commit 2ea3624

Please sign in to comment.