Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBShowInteractHandles
Behavior showing interaction handles.
This behavior can be used only once on an element.
Element class properties have the prefix showInteractHandles.
.
List of element classes to use as handles. Allowed are only element classes subclassing from InteractHandleMoveClass
.
showInteractHandles.handles
<list name='showInteractHandles.handles'> <string>InteractHandleMoveX</string> <string>InteractHandleMoveY</string> <string>InteractHandleMoveZ</string> </list>
Size in meters of interact handles.
showInteractHandles.handleSize
0.2
0
<float name='showInteractHandles.handleSize'>0.2</float>
Actor begins interacting with an interaction handle.
Actor stops interacting with an interaction handle.
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 ECBBehaviorGuiPanels guiPanels public var ECBSelectable selectable public var ECBShowInteractHandles showInteractHandles func new() guiPanels = ECBBehaviorGuiPanels.new(this) selectable = ECBSelectable.new(this) showInteractHandles = ECBShowInteractHandles.new(this, guiPanels, selectable) 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='ECBBehaviorGuiPanels'/> <behavior type='ECBSelectable'/> <behavior type='ECBShowInteractHandles'> <!-- set element properties. omit property prefix if used inside behavior tag --> <float name='.handleSize'>0.2</float> <list name='.handles'> <string>InteractHandleMoveX</string> <!-- only InteractHandle* classes allowed --> </list> <!-- in addition to '.handles' supports also this: --> <list name='handleSets'> <string>move</string> <string>rotate</string> <string>movehmd</string> </list> </behavior> </elementClass>