Skip to content

This package is possible to complement the track (Bezier curve) on the Timeline.

License

Notifications You must be signed in to change notification settings

k-okawa/WaypointSystemForTimeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WaypointSystemForTimeline

[日本語]

openupm

This package is possible to complement the track (Bezier curve) on the Timeline.

Screen Shot 2021-11-29 at 11 28 30

Installation

PackageManager

Install via git url

Open Window/Package Manager, and add package from git URL...

https://github.com/k-okawa/WaypointSystemForTimeline.git?path=Assets/Bg/WaypointSystemForTimeline

Install via OpenUPM

openupm add com.bg.waypointystemfortimeline

How to use

Screen Shot 2021-11-29 at 12 27 13

1.Create empty GameObject and add WaypointComponent

2.Set GameObject that need to move to target

If GameObject need to look tangent direction, check IsLookTangent.

3.Edit Waypoints

"+" and "-" button enables adding and removing point.

PropertyName Description
Position Position of point
BackTangent Bezier curve control point for back point
NextTangent Bezier curve control point for next point
T(0.0~1.0) value for interpolation. For example with above screen shot, when t is 0.4, interpolate between index1 and index2.

You can edit property directly or on the scene using the buttons below.

If you press edit button(<-, Position, ->) while the position editing tool is selected, position handle may overlap with the position editing tool of the parent object.

ButtonName Description
<- Edit BackTangent position
Position Edit Position
-> Edit NextTangent position

Also, with the Inspector locked, you can edit the Position by clicking the position of the Point on the Scene.

4.Automatic calculation of interpolated value

You can enter the value of T manually, but if you press "Calculate T Automatically", it will be evenly distributed according to the length of the curve.

5.Timeline Settings

5-1.Create Track

Screen Shot 2021-11-29 at 12 32 24

5-2.Set WaypointComponent to track reference

Screen Shot 2021-11-29 at 12 35 08

5-3.Create clip

Screen Shot 2021-11-29 at 12 36 28

About

This package is possible to complement the track (Bezier curve) on the Timeline.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages