Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBCapturedAnimations
Behavior adding captured animation support to owner element. This is the main recording feature for objects. Multiple animations can be recorded layered ontop of each other.
This behavior can be used only once on an element.
Element class properties have the prefix capturedAnimations.
.
Name for newly created animations.
myBehavior.animationName
Object
<string name='myBehavior.animationName'>Object</string>
Record state changed.
This behavior adds no conversation commands.
This behavior adds no conversation conditions.
This behavior adds no behavior tree actions.
This behavior adds no behavior tree conditions.
Since DEMoCap Version 1.3
class MyElement extends BehaviorElementClass public var ECBehaviorComponent component public var ECBehaviorCollider collider public var ECBBehaviorGuiPanels guiPanels public var ECBCapturedAnimations myBehavior func new() component = ECBehaviorComponent.new(this, null) collider = ECBehaviorCollider.new(this, component) guiPanels = ECBBehaviorGuiPanels.new(this) myBehavior = ECBCapturedAnimations.new(this, guiPanels, component, collider) end end
Using element class supporting adding behaviors the behavior can be added like this (again create an example which creates a valid element class):
<?xml version='1.0' encoding='UTF-8'?> <elementClass name='MyClass' class='GenericBehaviorElement'> <behavior type='ECBehaviorComponent'/> <behavior type='ECBehaviorCollider'/> <behavior type='ECBBehaviorGuiPanels'/> <behavior type='ECBCapturedAnimations'> <!-- optional: use component with id instead of empty string --> <string name='component'>second</string> <!-- set element properties. omit property prefix if used inside behavior tag --> <string name='.animationName'>Object</string> </behavior> </elementClass>