Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a BezierPathJoiner component to the Examples for stiching together multiple paths into one #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flo-wolf
Copy link

Added a BezierPathJoiner component to the Examples, which allows for stiching together multiple BezierPaths into one with smooth transitions. This is done by adding the BezierPathJoiner component to a new GameObject with a PathCreator component on it. Through the inspector other PathCreators can be referenced into a List, and via a click on the "Join Paths" button, all BezierPaths of the referenced PathCreators get joined into a single path, which then gets applied to the PathCreator.

Additionally, BezierPath.cs file is now correctly formatted and has an additional helper function for adding multiple points at once to the path, as well as a new cloning-constructor for creating a perfect copy of a BezierPath from another BezierPath.

…stiching together multiple BezierPaths into one with smooth transitions. The BezierPath.cs file is now correctly formatted and has an additional helper function for adding multiple points at once to the path, as well as a new cloning-constructor for creating a perfect copy of a BezierPath from another BezierPath.
@flo-wolf
Copy link
Author

Before Joining: 3 individual Paths, part of 3 different PathCreator components
image

After Joining: A single path with smooth transitions
image

The BezierPathJoiner component:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant