SmartBody : Head Movements

Description

Characters can perform head nods, head shakes, and head tosses (sideways head movements).

In the above image, the character's head tilt position is controlled via BML. Nods (movement around the x-axis) can be combined with shakes (movement around the y-axis) and tosses (movement around the z-axis).

Requirements

The <head> behavior requires a skeleton that includes 3 joints named spine4, spine5 and skullbase in that order, with spine4 the parent of spine5, which is the parent of skullbase. The head movement is spread among those joints.

Usage

<head type="NOD"/>

 

Head movements will take 1 second by default. This can be adjusted by setting the synchronization points. For example, to set a 3 second head shake:

<head type="SHAKE" start="0" end="3"/>
 

Parameters

ParameterDescriptionExample
type

Type of head movement:

NOD (up-down), SHAKE (left-right), TOSS (side-side)

WIGGLE  and WAGGLE (multiple nods of varying intensity)

<head type="NOD"/>
repeatsnumber of head movements
<head type="NOD" repeats="2"/>
   
velocity

frequency of head movements, default is 1.

.5 indicates twice the speed, 2 indicates half speed

<head type="NOD" velocity=".5"/>
amountmagnitude of head movement, from 0 to 1, default is .5
<head type="NOD" amount=".8"/>
sbm:smoothsmoothing parameter when starting and finishing head movements 
sbm:periodperiod of nod cycle, default is .5
<head type="NOD" sbm:period=".5"/>
sbm:warpwarp parameter for wiggle and waggle, default is .5
<head type="WIGGLE" sbm:warp=".8"/>
sbm:accelacceleration parameter for wiggle and waggle, default is .5
<head type="WIGGLE" sbm:accel=".9"/>
sbm:pitchpitch parameter for wiggle and waggle, default is 1
<head type="WAGGLE" sbm:pitch=".8"/>
sbm:decaydecay parameter for wiggle and waggle, default is .5
<head type="WAGGLE" sbm:decay=".7"/>
startwhen the head movements starts
 <head type="NOD" start="2"/>
readypreparation phase of head movement
<head type="NOD" start="2" ready=".5"/>
strokethe mid-point of the head movement
<head type="NOD" stroke="3"/>
relaxfinishing phase of head movement
<head type="NOD" relax="4"/>
endwhen the head movement ends
<head type="NOD" end="5"/>

Attachments: