From 58e93a8463735f7d0ad00cb52b940d014340d79f Mon Sep 17 00:00:00 2001 From: "Theston E. Fox" Date: Sun, 1 Jan 2017 17:27:03 +0000 Subject: [PATCH] fix(SpringLever): rename script to conform with naming convention The `VRTK_Spring_Lever` script has been renamed to `VRTK_SpringLever` removing the additional underscore as this does not adhere to the naming convention used by other scripts. --- .../3D/{VRTK_Spring_Lever.cs => VRTK_SpringLever.cs} | 2 +- .../{VRTK_Spring_Lever.cs.meta => VRTK_SpringLever.cs.meta} | 0 DOCUMENTATION.md | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) rename Assets/VRTK/Scripts/Controls/3D/{VRTK_Spring_Lever.cs => VRTK_SpringLever.cs} (98%) rename Assets/VRTK/Scripts/Controls/3D/{VRTK_Spring_Lever.cs.meta => VRTK_SpringLever.cs.meta} (100%) diff --git a/Assets/VRTK/Scripts/Controls/3D/VRTK_Spring_Lever.cs b/Assets/VRTK/Scripts/Controls/3D/VRTK_SpringLever.cs similarity index 98% rename from Assets/VRTK/Scripts/Controls/3D/VRTK_Spring_Lever.cs rename to Assets/VRTK/Scripts/Controls/3D/VRTK_SpringLever.cs index 2d468f29a..3d1210f27 100644 --- a/Assets/VRTK/Scripts/Controls/3D/VRTK_Spring_Lever.cs +++ b/Assets/VRTK/Scripts/Controls/3D/VRTK_SpringLever.cs @@ -9,7 +9,7 @@ namespace VRTK /// /// The script will instantiate the required Rigidbody, Interactable and HingeJoint components automatically in case they do not exist yet. The joint is very tricky to setup automatically though and will only work in straight forward cases. If there are any issues, then create the HingeJoint component manually and configure it as needed. /// - public class VRTK_Spring_Lever : VRTK_Lever + public class VRTK_SpringLever : VRTK_Lever { [Tooltip("Strength of the spring force that will be applied toward either end of the lever's range.")] public float springStrength = 10; diff --git a/Assets/VRTK/Scripts/Controls/3D/VRTK_Spring_Lever.cs.meta b/Assets/VRTK/Scripts/Controls/3D/VRTK_SpringLever.cs.meta similarity index 100% rename from Assets/VRTK/Scripts/Controls/3D/VRTK_Spring_Lever.cs.meta rename to Assets/VRTK/Scripts/Controls/3D/VRTK_SpringLever.cs.meta diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 4f9f4d6a8..57806de76 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -3198,7 +3198,7 @@ The Climbable Grab Attach script is used to mark the object as a climbable inter # Secondary Controller Grab Actions (VRTK/Scripts/Interactions/SecondaryControllerGrabActions) -This directory contains scripts that are used to provide different actions when a secondary controller grabs a grabbed obejct. +This directory contains scripts that are used to provide different actions when a secondary controller grabs a grabbed object. * [Base Grab Action](#base-grab-action-vrtk_basegrabaction) * [Swap Controller Grab Action](#swap-controller-grab-action-vrtk_swapcontrollergrabaction) @@ -4123,7 +4123,7 @@ All 3D controls extend the `VRTK_Control` abstract class which provides common m * [Drawer](#drawer-vrtk_drawer) * [Knob](#knob-vrtk_knob) * [Lever](#lever-vrtk_lever) - * [Spring Lever](#spring-lever-vrtk_spring_lever) + * [Spring Lever](#spring-lever-vrtk_springlever) * [Slider](#slider-vrtk_slider) * [Content Handler](#content-handler-vrtk_contenthandler) @@ -4352,7 +4352,7 @@ The script will instantiate the required Rigidbody, Interactable and HingeJoint --- -## Spring Lever (VRTK_Spring_Lever) +## Spring Lever (VRTK_SpringLever) > extends [VRTK_Lever](#lever-vrtk_lever) ### Overview