Skip to content

Tool for making navigation bezier splines with points, events and bindings to colliders

License

Notifications You must be signed in to change notification settings

TrismegistusDevelopment/unity-splines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Splines

Unity Version GitHub CodeFactor

GitHub last commit (branch) GitHub last commit (branch)

image

Tool for making navigation bezier splines with points, events and bindings to colliders

Installation

  • Open file manifest.json in your_repo/Packages
  • Under dependencies add following line:
"trismegistus.splines" : "https://github.com/TrismegistusDevelopment/unity-splines.git#upm"
  • Reopen your project in Unity

You should commit manifest.json

Update

  • Open file manifest.json in your_repo/Packages
  • Remove info about this package from lock section
  • Reopen your project

Setting up

  1. Create empty GameObject in scene
  2. Add NavigationManager script on it
  3. Create new NavigationData as suggested in component or directly in Project window and drag to corresponding field

Usage

NavigationManager

image

  • Waypoint coloring gradient - colorize path and waypoints using unity build-in Gradient class
  • Closed spline - to make spline closed/open
  • Stick to colliders - to raycast down from every waypoint and change their position.y if colliders found. Expensive
  • Smoothing per unit - relative value for spline subdivision.
  • Add - adding new waypoint in custom position. Hold shift to quickly add at the end
  • Waypoints
    • Move - moving waypoint to another position in list
    • Del - delete waypoint. Hold shift to quickly delete without prompt
    • Caption - to display in Scene View
    • Basic - if false, caption won't be displayed in Scene View

Follower

image

  • Mode - None Loop Once Ping Pong
  • Manager - select NavigationManager with desired path
  • Speed
  • Follow Rotation - should rotation of Follower changes according to WaypointEntity.Velocity(First derivative)

About

Tool for making navigation bezier splines with points, events and bindings to colliders

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published