User Tools

Site Tools


dragengine:modules:dragonscript:behavior_grabber

Differences

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

Link to this comparison view

Next revision
Previous revision
dragengine:modules:dragonscript:behavior_grabber [2022/02/05 18:36] – created dragonlorddragengine:modules:dragonscript:behavior_grabber [2024/03/14 16:51] (current) dragonlord
Line 16: Line 16:
  
 To detect grab spots a touch sensor is added with a default sphere shape. By default the touch sensor is disabled and has to be enabled if the game logic allows grabbing. The collision filter category is set to BaseGameApp.CollisionFilterBit.trigger and the collision filter mask is set to BaseGameApp.CollisionFilterBit.dynamic. To detect grab spots a touch sensor is added with a default sphere shape. By default the touch sensor is disabled and has to be enabled if the game logic allows grabbing. The collision filter category is set to BaseGameApp.CollisionFilterBit.trigger and the collision filter mask is set to BaseGameApp.CollisionFilterBit.dynamic.
- 
-Element class properties have the prefix "grabber{(id)}.". 
- 
 ====== Instance Counts ====== ====== Instance Counts ======
  
Line 25: Line 22:
 ====== Element Class Properties ====== ====== Element Class Properties ======
  
-Element class properties have the prefix **vrHandPointAt.** or **vrHandPointAt(id).** if id is not empty.+Element class properties have the prefix **grabber.** or **grabber(id).** if id is not empty.
  
 ===== shape ===== ===== shape =====
Line 61: Line 58:
 ====== Optional Behaviors ====== ====== Optional Behaviors ======
  
-This behavior does not support optional behaviors.+  * [[behavior_collider|ECBehaviorCollider]]: If used attaches grab spot touch collider to collider 
 +  * [[behavior_vrhand|ECBehaviorVRHand]]: If used attaches grab spot touch collider to VR hand collider
  
 ====== Persistency ====== ====== Persistency ======
Line 71: Line 69:
 ====== API Documentation ====== ====== API Documentation ======
  
-[[https://developer.dragondreams.ch/docs/dragonscript/scriptapi/latest/classDragengine_1_1Scenery_1_1ECBehaviorGrabber.html|ECBehaviorGrabber]].+#@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1ECBehaviorGrabber.html,ECBehaviorGrabber~@#.
  
 Since DragonScript Module Version **1.9** Since DragonScript Module Version **1.9**
Line 107: Line 105:
 </code> </code>
  
-The [[https://developer.dragondreams.ch/docs/dragonscript/scriptapi/latest/classDragengine_1_1Scenery_1_1BaseVRActorClass.html|BaseVRActorClass]] provides full VR support including ECBehaviorGrabber for both hands.+The #@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1BaseVRActorClass.html,BaseVRActorClass~@# provides full VR support including ECBehaviorGrabber for both hands.
  
 ====== Live Examples ====== ====== Live Examples ======
  
   * [[https://github.com/LordOfDragons/deexamples|DEExamples Repository]]: ExampleVR project.   * [[https://github.com/LordOfDragons/deexamples|DEExamples Repository]]: ExampleVR project.
dragengine/modules/dragonscript/behavior_grabber.1644086199.txt.gz · Last modified: 2022/02/05 18:36 by dragonlord