User Tools

Site Tools


dragengine:modules:dragonscript:behavior_vrhandaction

Differences

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

Link to this comparison view

dragengine:modules:dragonscript:behavior_vrhandaction [2022/03/02 20:57] – created dragonlorddragengine:modules:dragonscript:behavior_vrhandaction [2024/03/14 16:44] (current) dragonlord
Line 11: Line 11:
 Behavior adding Action support to VR hands. Behavior adding Action support to VR hands.
  
-Allows instance of [[https://developer.dragondreams.ch/docs/dragonscript/scriptapi/latest/classDragengine_1_1Scenery_1_1BaseVRHandAction.html|BaseVRHandAction]] to be assigned to actor VR hands. During thinking the Action is called.+Allows instance of #@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1BaseVRHandAction.html,BaseVRHandAction~@# to be assigned to actor VR hands. During thinking the Action is called.
  
-Actions allow actors to perform a specific, well defined and enclosed action like interacting with an object for each hand separately. These actions run after the main actor action as provided by [[https://developer.dragondreams.ch/docs/dragonscript/scriptapi/latest/classDragengine_1_1Scenery_1_1ECBehaviorActorAIAction.html|ECBehaviorActorAIAction]]. VR hand actions are typically  nly suitable for the player.+Actions allow actors to perform a specific, well defined and enclosed action like interacting with an object for each hand separately. These actions run after the main actor action as provided by #@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1ECBehaviorActorAIAction.html,ECBehaviorActorAIAction~@#. VR hand actions are typically  nly suitable for the player.
  
 ====== Instance Counts ====== ====== Instance Counts ======
Line 25: Line 25:
 Thie behavior adds no element class properties. Thie behavior adds no element class properties.
  
-Using this behavior in code you should call ECBehaviorVRHandAction.setActionFactory() to set the factory creating the initial action for the hand to use. By default an instance of [[https://developer.dragondreams.ch/docs/dragonscript/scriptapi/latest/classDragengine_1_1Scenery_1_1BaseVRHandAction.html|BaseVRHandAction]] is used.+Using this behavior in code you should call ECBehaviorVRHandAction.setActionFactory() to set the factory creating the initial action for the hand to use. By default an instance of #@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1BaseVRHandAction.html,BaseVRHandAction~@# is used.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
Line 42: Line 42:
 ====== API Documentation ====== ====== API Documentation ======
  
-[[https://developer.dragondreams.ch/docs/dragonscript/scriptapi/latest/classDragengine_1_1Scenery_1_1ECBehaviorVRHandAction.html|ECBehaviorVRHandAction]].+#@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1ECBehaviorVRHandAction.html,ECBehaviorVRHandAction~@#.
  
 Since DragonScript Module Version **1.10** Since DragonScript Module Version **1.10**
Line 52: Line 52:
 ====== Element Class Example ====== ====== Element Class Example ======
  
-The [[https://developer.dragondreams.ch/docs/dragonscript/scriptapi/latest/classDragengine_1_1Scenery_1_1BaseVRActorClass.html|BaseVRActorClass]] provides support for right and left hand actions. See BaseVRActorClass.getVRRightHandAction() and BaseVRActorClass.getVRLeftHandAction() to get access to the behaviors on class side and BaseVRActor.getVRRightHandAction() and BaseVRActor.getVRLeftHandAction() to access the behavior instance on actor instance side.+The #@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1BaseVRActorClass.html,BaseVRActorClass~@# provides support for right and left hand actions. See BaseVRActorClass.getVRRightHandAction() and BaseVRActorClass.getVRLeftHandAction() to get access to the behaviors on class side and BaseVRActor.getVRRightHandAction() and BaseVRActor.getVRLeftHandAction() to access the behavior instance on actor instance side.
  
 The following example creates an element class adding the action elements manually. The following example creates an element class adding the action elements manually.
dragengine/modules/dragonscript/behavior_vrhandaction.1646254666.txt.gz · Last modified: 2022/03/02 20:57 by dragonlord