Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
Loading...
Searching...
No Matches
AC.AutoLipSync Class Reference
Inheritance diagram for AC.AutoLipSync:

Public Attributes

Transform jawBone
Coord coordinateToAffect
float rotationFactor = 10f
bool isAdditive = true

Protected Member Functions

void Awake ()
void LateUpdate ()

Protected Attributes

float volume
float bin = 0.04f
int width = 64
float output
float[] array
Quaternion jawRotation
AudioSource _audio
Quaternion originalRotation
Char _character

Detailed Description

A component that provides simple lipsyncing, Half Life 1-style, in which a jaw bone rotates with the volume of the sound that the GameObject is emitting.

Member Data Documentation

◆ coordinateToAffect

Coord AC.AutoLipSync.coordinateToAffect

Which axis to rotate the bone around

◆ isAdditive

bool AC.AutoLipSync.isAdditive = true

If True, rotations will be added, rather than replace, existing animation

◆ jawBone

Transform AC.AutoLipSync.jawBone

The jaw bone to rotate

◆ rotationFactor

float AC.AutoLipSync.rotationFactor = 10f

The rotation factor