Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBSceneObject
Behavior for scene object elements. Scene objects have an optional name and are shown to the user in the project panel. Scene objects are persistable except the active motion capture actor which is not saved.
It is mandatory to add this behavior otherwise the user can not add an instance of this object to the scene.
This behavior can be used only once on an element.
Element class properties have the prefix sceneObject.
.
Name to use for newly created objects.
sceneObject.name
<string name='sceneObject.name'>value</string>
Offset relative to actor position to add new object to. Depending on what kind of object is added it is useful to place it on the ground in front of the actor or in front of the actor head. Value can be null
to let DEMoCap decide what offset to use.
sceneObject.addActorOffset
null
<vector name='sceneObject.addActorOffset' x='0' y='1.5' z='0.5'/>
Object can be hidden. Set this property only to true
if there exists one or more other behaviors able to show the object again. Otherwise the user can not show the element anymore.
sceneObject.canHide
false
<boolean name='sceneObject.canHide'>false</boolean>
Do not show behavior panels for editing. Only for use by MoCapActorClass. Do not set this to true unless you know what you are doing.
sceneObject.editPanelNoBehaviors
false
<boolean name='sceneObject.editPanelNoBehaviors'>false</boolean>
Do not show behavior panels for physics. Only for use by MoCapActorClass. Do not set this to true unless you know what you are doing.
sceneObject.editPanelNoPhysics
false
<boolean name='sceneObject.editPanelNoPhysics'>false</boolean>
This behavior has no events.
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 requires no other behaviors.
This behavior does not support optional behaviors.
Since DEMoCap Version 1.3
class MyElement extends BehaviorElementClass public var ECBSceneObject sceneObject func new() sceneObject = ECBSceneObject.new(this) 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='ECBSceneObject'> <!-- set element properties. omit property prefix if used inside behavior tag --> <vector name='.addActorOffset' x='0' y='1.5' z='0.5'/> </behavior> </elementClass>