Make sure to always rotate in the right direction
If you remember some of the earlier videos, sometimes the characters would rotate in the wrong direction, which seems even more odd now that animations work. Let’s fix this:
Ramblings about hobbyist game development
Make sure to always rotate in the right direction
If you remember some of the earlier videos, sometimes the characters would rotate in the wrong direction, which seems even more odd now that animations work. Let’s fix this:
– Add functions to more comfortably change animations on objects
– Automatically switch to a walking state for moving objects. Set the idle state when the destination is reached.
This makes it possible to quickly change the animation on the fly. Also, changing the animations like this makes the movement seem a lot more natural.
– Resolve deadlock when changing resolutions
– Very minor optimisation: pre-calculate what is essentially a static value
This is a recurring issue, once again fixed in its most current iteration.
Only re-calculate animation states after at least 20ms have passed
Do not eat up all the CPU. Or at least not as much.
– proper support for playing back animations
– IDE suggested code improvements
This allows us to properly render animations in sensible speeds without any hardcoded information. This also speeds up the animation when the simulation speed is being changed.
– move the ticklength to a separate file for cleaner inclusion
– fix *all* the IDE warnings. not actually all, but so many.
– add information about the current animation + animation index to the model
Further progress in the direction of proper animation usage without hardcoded information.
– pass the supported/required animations on to the object instances
– if an object has animations, call the model manager tick function(WiP)
– fix IDE warnings
This brings us closer to actually get to use the animations as intended, not just having them hardcoded to run at all times.
Fix CLion warnings
New CLion version, new warnings to squash.
Add required/supported animations to the object configuration. Fix some IDE warnings.
Similar to the supported actions there are now also configurable supported animations. The data is not used yet, however.
– add mapping from animation name to index
– undo accidental renaming of the model class cpp file
– reformat the build targets in the CMakeFile
Specifying indices is not as much fun as just using the animations human readable name.