Sunday, 15 December 2019

Scripting Animations

To add a little bit of polish I decided to code some scripts that allow me to animate objects that don't require complex animations, such as spinning on the spot, moving up and down etc. 
I also created slightly more complex movement using customisable targets. This allows me to move any object at runtime between 2 target points. This comes in handy when an object isn't travelling along straight lines. It uses the location of empty objects as target references and then translates between the two.



For this section of the stage, the animations work very well. I may need to add a wait timer to the train, but other than that it works, and brings a bit of life into the scene.

Next I need to do the same for the trams in the downtown area, these are a bit more complex in that they will need to have more than point A and B to navigate. It will more likely be points A through D to show them moving properly and turning.

No comments:

Post a Comment