Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBRecordAnimation
Behavior adding support to record animations. This behavior is requird to capture objects during motion capture.
This behavior can be used only once on an element.
Element class properties have the prefix recordAnimation..
Motion capture is preparing to begin. The user is shown the prepare countdown.
Motion capture recording started.
Motion capture recording stopped.
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.
This behavior does not support optional behaviors.
Since DEMoCap Version 1.3
class MyElement extends BehaviorElementClass
public var ECBehaviorComponent component
public var ECBehaviorCollider collider
public var ECBBehaviorGuiPanels guiPanels
public var ECBCapturedAnimations capturedAnimations
public var ECBRecordAnimation recordAnimation
func new()
component = ECBehaviorComponent.new(this, null)
collider = ECBehaviorCollider.new(this, component)
guiPanels = ECBBehaviorGuiPanels.new(this)
capturedAnimations = ECBCapturedAnimations.new(this, guiPanels, component, collider)
recordAnimation = ECBRecordAnimation.new(this, capturedAnimations)
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'/> <behavior type='ECBRecordAnimation'/> </elementClass>