class
LipSyncSystem
Writes lip-sync weights into MorphComponent from the entity's playing AudioSource: the jaw from the source's envelope follower (enabled on demand), the visemes from the text paced over the clip. Runs before MorphSystem in the same tick so the weights land in this frame's mesh.
- Module
- Game
- Header
#include "Gameplay/LipSyncSystem.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
void | Initialize | |
void | Shutdown | |
void | Update | |
int32_t | VisemeForLetter | The five visemes in the order the component lists its targets: AA, EE, OH, MM, FF. |
const char* | VisemeName | |
int32_t | VisemeAt | Which viseme a line is on at t seconds of a clip duration seconds long: letters are spread evenly over the clip, spaces are silence. |
Function details
Initialize
C++
void Initialize(World* world) overrideShutdown
C++
void Shutdown() overrideUpdate
C++
void Update(float deltaTime) overrideVisemeForLetter
C++
static int32_t VisemeForLetter(char letter)The five visemes in the order the component lists its targets: AA, EE, OH, MM, FF. -1 is silence / a consonant with no shape.
VisemeName
C++
static const char* VisemeName(int32_t viseme)VisemeAt
C++
static int32_t VisemeAt(const std::string& text, float t, float duration)Which viseme a line is on at t seconds of a clip duration seconds long: letters are spread evenly over the clip, spaces are silence.
Generated from Gameplay/LipSyncSystem.h via game.json · Nov 5, 2026Version 1.0.0