Drag[en]gine Script Module DragonScript  1.21
Dragengine.Scenery.ECBehaviorVRHand Class Reference

Behavior element behavior adding VR Hand Controller support to actor. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorVRHand:
Dragengine.Scenery.DefaultECBehavior Dragengine.Scenery.ECBehavior Dragengine.Scenery.BehaviorCompatiblePersistency

Classes

class  BlockListenerFactory
 Factory creating listeners using block. More...
 
interface  CollisionListener
 Listener for behavior collision events. More...
 
class  DefaultCollisionListener
 Default implementation of behavior collision listener. More...
 
class  DefaultListener
 Default implementation of behavior instance listener. More...
 
class  Instance
 Behavior instance. More...
 
interface  Listener
 Listener for behavior instance events. More...
 
interface  ListenerFactory
 Factory creating listeners. More...
 

Additional Inherited Members

- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior
void assignInstanceIndex (int instanceIndex)
 Assign instance index. More...
 
void dispose ()
 Dispose of behavior. More...
 
String getBehaviorID ()
 Unique identifier of behavior. More...
 
String getID ()
 Identifier. More...
 
int getInstanceIndex ()
 Instance index. More...
 
void loadSupportedData (String identifier, PersistencyEnvironment env, FileReader reader, ECBehaviorInstance instance)
 Load instance data of another behavior. More...
 
bool supportsBehaviorID (String identifier)
 Behavior supports loading instance data of another behavior. More...
 
- Public Member Functions inherited from Dragengine.Scenery.ECBehavior
ECBehaviorInstance createInstance (BehaviorElement element)
 Create Behavior instance. More...
 
- Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehavior
DefaultECBehavior new (BehaviorElementClass eclass)
 Create default composeable behavior with empty identifier. More...
 
DefaultECBehavior new (BehaviorElementClass eclass, String id)
 Create default composeable behavior. More...
 
void setBehaviorID (String identifier)
 Set behavior identifier. More...
 
void useClassNameAsBehaviorID ()
 Set behavior identifier to "<class-name>:<identifier>". More...
 
void useFullyQualifiedClassNameAsBehaviorID ()
 Set behavior identifier to "<fully-qualified-class-name>:<identifier>". More...
 

Detailed Description

Behavior element behavior adding VR Hand Controller support to actor.

Version
1.6

This behavior tracks one hand controller optionally displaying it on screen using either the developer provided model or a custom model. Optionally a rig can be assigned to get physical presence of the controller in the game world.

This behavior can be added multiple times to an element. This allows to track two hand controllers. Each instance has an identifier which can be used to retrieve a specific instance. The prefix of the element class properties is "vrHand." . If the identifier is not empty the element class properties have the prefix "{id}.vrHand." . This can be overwritten if required.

This behavior does not require persistable element class (setPersistable).

Version 1.7

Adds a collider resource to allow other elements to attach to the hand. By default the collider is set to be a ghost collider suitable for attaching elements without causing interactions with the scene. If you would like to get interaction with the scene set the collision parameters accordingly.


The documentation for this class was generated from the following file: