Skip to content

Commit

Permalink
README clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirkula authored Jun 17, 2021
1 parent 8504d6a commit 218365f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,11 @@ Finds uniformly distributed points along the spline and returns a lookup table.

*EvenlySpacedPointsHolder* class has *spline*, *splineLength* and *uniformNormalizedTs* variables. In addition, it has the following convenience functions:

- **GetNormalizedTAtPercentage:** converts a percentage to normalizedT value, i.e. if you enter 0.5f as parameter, it will return the normalizedT value of the spline that corresponds to its actual middle point.
- **GetNormalizedTAtDistance:** finds the normalizedT value that is specified units away from the spline's starting point.
- **GetPercentageAtNormalizedT:** inverse of *GetNormalizedTAtPercentage*.
**GetNormalizedTAtPercentage:** converts a percentage to normalizedT value, i.e. if you enter 0.5f as parameter, it will return the normalizedT value of the spline that corresponds to its actual middle point.

**GetNormalizedTAtDistance:** finds the normalizedT value that is specified units away from the spline's starting point.

**GetPercentageAtNormalizedT:** inverse of *GetNormalizedTAtPercentage*.

- `PointCache GeneratePointCache( EvenlySpacedPointsHolder lookupTable, ExtraDataLerpFunction extraDataLerpFunction, PointCacheFlags cachedData = PointCacheFlags.All, int resolution = 100 )`

Expand Down Expand Up @@ -246,4 +248,4 @@ Modifies a MeshFilter's mesh to bend it in the direction of a spline. If *High Q

**Recalculate From Scratch:** Unity's `RecalculateNormals` and/or `RecalculateTangents` functions will be invoked to recalculate these vectors from scratch

Note that this component doesn't add new vertices to the original mesh, so if the original mesh doesn't have enough vertices in its bend axis, then the bent mesh will have jagged edges on complex splines.
Note that this component doesn't add new vertices to the original mesh, so if the original mesh doesn't have enough vertices in its bend axis, then the bent mesh will have jagged edges on complex splines.

0 comments on commit 218365f

Please sign in to comment.