Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
Major revamp of original library into new form

* Refactored file layout ordering and extracted nested types into their own files.
* Refactored namespaces and added AssemblyDefinitions for runtime and editor code
* Refactored Bezier3DSpline functionality into a new ScriptableObject-derived class Bezier3DSplineData and modified Bezier3DSpline to use that internally with modifications for logic requiring transformation of position, rotation, and direction in its Transform's local space.
* Refactored inspector code into separate tools classes for better readability and reuse between two spline types
* Refactored property, field, and event names for proper casing
* Refactored multiple variable assignment and declaration into separate instances.
* Replaced custom move tool with plain Unity version to simplify the code base and avoid movement bugs in custom code.
* Added methods for spline types to get distance based on curve or knot index.
* Migrated mirror handles, vizualizing rotation to user editor preferences rather than static fields.
* Added hotkey for focusing last active SceneView camera on selected knot
* Modified Handle position tool to only show when in Move mode.
* Modified Scene UI to use icons, larger button styles for mirror and rotation visualization preferences
* Added documentation XML blocks to most classes, methods, etc...
* Moved SplineTrain into library folder, renamed as SplineWalker and refactored to properly implement loop types for moving at a constant speed or over a fixed duration.
* Added editor icons for Bezier3DSpline, Bezier3DSplineData, and SplineWalker. For Monobehaviour-derived components these will appear as Gizmos in the Scene View.
* Fixed bugs for editor logic that did not use Undo.RecordObject functionality.
* Fixed bugs for Up vector not being calculated correctly with earlier/later rotations where the start and end Knots ar at the beginning and end of the spline.
* Fixed bugs where curve was not recalculated/recached when IsClosed was toggled. This largedly affected Handles at the beginning and end that would lose either the start or end handle when IsClosed was changed from true to false.
* Added ability to reset Bezier3DSplineData ScriptableObject to starting values.
* Extracted methods and properties for Bezier3DSplineData and Bezier3DSpline into IReadOnly3DSplineData (a read-only version of a spline) and IBezier3DSplineData (all methods and properties).
* Simplified interface for Bezier3DSplineData and Bezier3DSpline by reducing access to local methods for internal use only. Most of the time users will only want/require the non-local methods that always return the proper orientation, position, and direction in world space rather than local to the spline space.
* Added normalized methods for position, rotation, and spline length where the parameter value is between 0-1 where the spline distance used is a percentage of the total length of the spline.
* Added both the new and original source license to repo root and library folders.
* Created documentation and images for readme and a usage guide.
  • Loading branch information
jzapdot committed Dec 29, 2019
0 parents commit bdf2d19
Show file tree
Hide file tree
Showing 81 changed files with 5,210 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Curves.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Curves/Licenses.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Curves/Licenses/Siccity_license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2017 Thor Brigsted

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 changes: 7 additions & 0 deletions Curves/Licenses/Siccity_license.txt.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Curves/Licenses/license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2017 Jeff Campbell

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 changes: 7 additions & 0 deletions Curves/Licenses/license.txt.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Curves/Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Curves/Scripts/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("JCMG.Curves.Editor")]
11 changes: 11 additions & 0 deletions Curves/Scripts/AssemblyInfo.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Curves/Scripts/Components.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bdf2d19

Please sign in to comment.