![]() |
FCV Engine 0.1
A tool and framework for tutorials in game development
|
A component to make an object move between determined positions with different options for movement types and speeds. More...
Private Member Functions | |
| void | Update () |
| Moves platform in a constant speed no matter the distance between current points. | |
| void | SetNextTarget () |
| Sets the next point for the moving platform to move towards and sets the length of the journey it is suppose to travel. | |
| int | GetNextIndex (int currentIndex, int arrayLength, LoopType movementType) |
| Gets the next index on moving platform based on the movement type. | |
A component to make an object move between determined positions with different options for movement types and speeds.
Definition at line 13 of file MovingPlatform.cs.
|
private |
Gets the next index on moving platform based on the movement type.
| currentIndex | current index platform is going to |
| arrayLength | The number of points in pointList |
| movementType | which type of movement is it (Loop, PingPong) |
Definition at line 109 of file MovingPlatform.cs.