Added scripting to rotating spotlight object + some changes #1689
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #768
Added setters, faders, and easers for angle, rotation speed, and light color.
Also changed the direction variable to consider not rotating at all.
Also changed GameObjects to handle FadeHelpers globally. This will require a refactor of all GameObject-inheriting classes to call GameObject::update(float) where necessary.
Consideration: Although the "direction" property seems needless (as clockwise/counter-clockwise rotation can be achieved using positive or negative values), I chose to leave it there so that scripters can easily change the direction of a spotlight - or stop it completely - without having to know/remember its original speed in some way if they want to reset it at a later point.