Breath
Idle animations refer to animations within video games that occur when the player character does not do any action (hence being idle).
Description
The purpose this component has is to add a breathing effect to the object, to imitate an idle animation.
How does it work?
Every frame a sin()
function is used to determine the position and rotation of the object; we multiply the Wave Data by the result to allow you greater control over it.
Tweaking the effect
The Breath component has two fields that can customize what the motion does. They have the following names: positionWave
and rotationWave
.
These are both Wave Data, so they present the developer with an amplitude, and a rate.
The amplitude decides what directions the objects moves in, and the rate decides how fast that happens.
Last updated
Was this helpful?