Method SetPivot
SetPivot(SplineContainer, Vector3)
Reset a transform position to a position while keeping knot positions in the same place. This modifies both knot positions and transform position.
Declaration
public static void SetPivot(SplineContainer container, Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
SplineContainer | container | The target spline. |
Vector3 | position | The point in world space to move the pivot to. |