SmartBody characters can modulate their breathing. Breathing is implemented either by the use of shapes controlled by the rendering engine, or by using a joint-based motion that is overlayed on top of a character. Characters can control the breathing rate, as well as the minimum and maximum respiratory volumes.
SmartBody controls character breathing by creating a breathing cycle and modulating the rate at which it is played.
There are several attributes that can be set on a character that control breathing:
Attribute | Comment |
---|---|
breathing.motion | The name of the motion to be used as an animation overlay to control breathing. Typically, this animation would deform a set of joints that define the stomach and possibly the rib cage. The motion should contain a single breathing cycle that can be looped. SmartBody will modulate the effect of the breathing overlay on the character. Default is "" |
breathing.useBlendChannels | Determines whether to add two channels, breath_x and breath_y to the character's channel array, rather than using a breathing motion overlay. The breathX channel indicates the respiratory volume. The breathY channel indicates the normalized breathing phase value (from 0 to 1). Default is False |
breathing.bpm | Number of breaths per minute. Default is 15 |