Description
SmartBody blends consist of one or more animations that can be parameterized in multiple ways. For example, a blend could consist of a set of walking, jogging and running motions, or several animation of the character pointing in different directions. Such blendscan be controlled programmatically (such as through the locomotion controllers) or directly via BML. This can be used, for example, for controlling a character's locomotion interactively.
Requirements
The single animation, one-, two- or three- dimensional blendmust be created first. Please see the section on Creating Blends for more details.
Usage
<blend name="allJump"/> <blend name="allLocomotion" x="100" y="2" z="-20"/>
Parameters
| Parameter | Description | Example |
|---|---|---|
| name | Name of the blend to use. (Required) | <blend name="allJump"/> |
| mode | Whether a new blend is being scheduled, or the current one is being updated. Options:
Default: schedule | <blend mode="schedule" name="allJump"/> |
| sbm:wrap-mode | Wrap mode of the blend . Options:
Default: Loop | <blend name="allJump" sbm:wrap-mode="Loop"/> |
| sbm:schedule-mode | Schedule mode of the blend . Options:
Default: Queued | <blend name="allJump" sbm:schedule-mode="Now"/> |
| sbm:blend-mode | Blend mode of the blend . Options:
Default: Overwrite | <blend name="allHeadTilt" sbm:blend-mode="Additive"/> |
| sbm:partial-joint | Starting joint inside skeleton hierarchy that defines the affected blending joints | <blend name="allHeadTilt" sbm:partial-joint="spine4"/> |
| x | First parameter value of the blend . The only parameter for a 1D blend , or the first parameter for a 2D or a 3D blend | <blend mode="schedule" |
| y | Second parameter value of the blend . Second parameter for a 2D or a 3D blend | <blend mode="schedule" |
| z | Third parameter value of a 3D blend . | <blend mode="schedule" |
| start | Time offset to schedule the blend . | <blend name="allJump" start="3.0"/> |