Awesome
WaypointSystemForTimeline
[日本語]
This package is possible to complement the track (Bezier curve) on the Timeline.
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
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.