User Tools

Site Tools


dragengine:modules:dragonscript:behavior_vrhandpose

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dragengine:modules:dragonscript:behavior_vrhandpose [2025/03/13 17:18] dragonlorddragengine:modules:dragonscript:behavior_vrhandpose [2025/05/14 10:38] (current) dragonlord
Line 214: Line 214:
  
 This behavior has no events. This behavior has no events.
 +
 +====== Behavior Tree Actions ======
 +
 +This behavior adds these behavior tree actions if behavior tree is present. If behavior has non-empty identifier replace ''vrHandPose'' with ''vrHandPose(id)''.
 +
 +===== vrHandPose.update =====
 +
 +Update VR hand pose.
 +
 +^Parameter^Value^Description^
 +|controllers| |Update controllers|
 +|applyAnimations| |Apply animations|
 +
 +This is an example of using this action:
 +<code xml>
 +<action name='vrHandPose.set'>
 +  <parameter name='controllers'/>
 +</action>
 +</code>
 +
 +====== Behavior Tree Conditions ======
 +
 +This behavior adds no behavior tree conditions.
 +
 +====== State Machine Actions ======
 +
 +Same as [[#behavior_tree_actions|Behavior Tree Actions]].
 +
 +====== State Machine Conditions ======
 +
 +Same as [[#behavior_tree_conditions|Behavior Tree Conditions]].
 +
 +====== State Machine Events ======
 +
 +This behavior sends no state machine events.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
Line 221: Line 256:
 ====== Optional Behaviors ====== ====== Optional Behaviors ======
  
-This behavior does not support optional behaviors.+  * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: Add actions and conditions for behavior trees to use. 
 +  * [[behavior_statemachine|ECBehaviorStateMachine]]: Add actions and conditions for state machine to use and events to send to the state machine.
  
 ====== Persistency ====== ====== Persistency ======
Line 281: Line 317:
     <!-- required: use vr hand with id. -->     <!-- required: use vr hand with id. -->
     <string name='vrHand'>right</string>     <string name='vrHand'>right</string>
 +    
 +    <!-- optional: add behavior trees. default adds all behavior trees. -->
 +    <list name='behaviorTrees'>
 +      <string/> <!-- add behavior with empty identifier -->
 +      <string>default</string> <!-- add behavior with 'default' identifier -->
 +    </list>
 +    
 +    <!-- optional: add state machines. default adds all state machines. -->
 +    <list name='stateMachines'>
 +      <string/> <!-- add behavior with empty identifier -->
 +      <string>default</string> <!-- add behavior with 'default' identifier -->
 +    </list>
          
     <!-- set element properties. omit property prefix if used inside behavior tag -->     <!-- set element properties. omit property prefix if used inside behavior tag -->
     <float name='.fingerTipDistance'>0.15</float>     <float name='.fingerTipDistance'>0.15</float>
   </behavior>   </behavior>
-  +    
   <!-- for adding multiple behaviors use unique identifiers -->   <!-- for adding multiple behaviors use unique identifiers -->
   <behavior type='ECBehaviorVRHandPose' id='left'>   <behavior type='ECBehaviorVRHandPose' id='left'>
dragengine/modules/dragonscript/behavior_vrhandpose.1741886288.txt.gz · Last modified: 2025/03/13 17:18 by dragonlord