Method SetAutoSmoothTension
SetAutoSmoothTension(int, float)
Sets the tension that is used to calculate the magnitude of tangents when the TangentMode is AutoSmooth. Valid values are between 0 and 1. A lower value results in sharper curves, whereas higher values appear more rounded.
Declaration
public void SetAutoSmoothTension(int index, float tension)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The knot index to set a tension value for. |
| float | tension | Set the length of the tangent vectors. |
SetAutoSmoothTension(SplineRange, float)
Sets the tension that is used to calculate the magnitude of tangents when the TangentMode is AutoSmooth. Valid values are between 0 and 1. A lower value results in sharper curves, whereas higher values appear more rounded.
Declaration
public void SetAutoSmoothTension(SplineRange range, float tension)
Parameters
| Type | Name | Description |
|---|---|---|
| SplineRange | range | The range of knot indices to set a tension value for. |
| float | tension | Set the length of the tangent vectors. |