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

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorVRHand.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ColliderListener Dragengine.Scenery.ECBehaviorInstance

Classes

class  AttachDetachListener
 Controller attach/detach listener. More...
 

Public Member Functions

void addListenerFactory (Block blockFactory)
 Add listener factory using block. More...
 
void addListenerFactory (ListenerFactory factory)
 Add listener factory. More...
 
void createListeners (Instance instance)
 Create listeners from factories adding them to behavior instance. More...
 
void dispose ()
 Dispose of behavior. More...
 
void forEachListenerFactory (Block ablock)
 Visit listener factories with block with argument ListenerFactory. More...
 
BindingManager getBindingManager ()
 Binding manager. More...
 
ECComposeCollider getCollider ()
 Composeable collider for element class. More...
 
ECBehaviorComponent getComponent ()
 Component behavior. More...
 
InputDeviceType getInputDeviceType ()
 Input device type. More...
 
ECPBoolean getShowHand ()
 Show hand. More...
 
ECPBoolean getUseVendorModel ()
 Use vendor model. More...
 
ECBehaviorVRPlayspace getVRPlayspace ()
 VR Playspace behavior. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, InputDeviceType inputDeviceType)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, InputDeviceType inputDeviceType, BindingManager bindingManager)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, InputDeviceType inputDeviceType, BindingManager bindingManager, String id)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, InputDeviceType inputDeviceType, BindingManager bindingManager, String id, String subID)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, InputDeviceType inputDeviceType, BindingManager bindingManager, String id, String subID, String prefix)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, InputDeviceType inputDeviceType, String id)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, InputDeviceType inputDeviceType, String id, String subID)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, InputDeviceType inputDeviceType, String id, String subID, String prefix)
 Create behavior element class. More...
 
void setGhost ()
 Set up collider as ghost collider. More...
 
void setPhysics ()
 Set up collider as kinematic collider. More...
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void addToGameWorld ()
 Add element to game world. More...
 
void attachToParent (Element parent)
 Attach element to object set by the mapper in the IGDE World Editor. More...
 
void enterFrame ()
 Frame update started. More...
 
void geometryChanged ()
 Position or orientation changed. More...
 
BehaviorElement getElement ()
 Behavior element to apply behavior to. More...
 
int getInstanceIndex ()
 Behavior instance index. More...
 
void init (StubElement stub)
 Initialize element from stub. More...
 
DefaultECBehaviorInstance new (BehaviorElement element)
 Create default composeable instance. More...
 
void postThink (float elapsed)
 Post thinking after physics processing is finished. More...
 
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read behavior instance from file. More...
 
void removeFromGameWorld ()
 Remove element from game world. More...
 
bool requiresEnterFrame ()
 Behavior instance requires enterFrame() to be called. More...
 
bool requiresThink ()
 Behavior instance requires think() to be called. More...
 
void stateChanged ()
 State changed (visble, touchable). More...
 
void think (float elapsed)
 Think about what to do for the next frame update. More...
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior instance to file. More...
 
- Public Member Functions inherited from Dragengine.Scenery.ColliderListener
void collisionResponse (Collider owner, CollisionInfo info)
 Calculate response for a collision. More...
 
bool canHitCollider (Collider owner, Collider collider)
 Collider can collide with another collider. More...
 
void colliderChanged (Collider owner)
 Collider properties have changed and attached resources have been updated. More...
 

Static Public Member Functions

static ECBehaviorVRHand getBehaviorIn (BehaviorElementClass eclass)
 Get behavior in element class or null if absent. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void setRequiresEnterFrame (bool required)
 Set if behavior instance requires enterFrame() to be called. More...
 
void setRequiresThink (bool required)
 Set if behavior instance requires think() to be called. More...
 

Detailed Description

Behavior instance.

Member Function Documentation

◆ addListenerFactory() [1/2]

void Dragengine.Scenery.ECBehaviorVRHand.Instance.addListenerFactory ( Block  blockFactory)

Add listener factory using block.

Block receives as parameter Instance and returns Listener.

◆ addListenerFactory() [2/2]

void Dragengine.Scenery.ECBehaviorVRHand.Instance.addListenerFactory ( ListenerFactory  factory)

Add listener factory.

◆ createListeners()

void Dragengine.Scenery.ECBehaviorVRHand.Instance.createListeners ( Instance  instance)

Create listeners from factories adding them to behavior instance.

◆ dispose()

void Dragengine.Scenery.ECBehaviorVRHand.Instance.dispose ( )

Dispose of behavior.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ forEachListenerFactory()

void Dragengine.Scenery.ECBehaviorVRHand.Instance.forEachListenerFactory ( Block  ablock)

Visit listener factories with block with argument ListenerFactory.

◆ getBehaviorIn()

static ECBehaviorVRHand Dragengine.Scenery.ECBehaviorVRHand.Instance.getBehaviorIn ( BehaviorElementClass  eclass)
static

Get behavior in element class or null if absent.

Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorVRHand.

◆ getBindingManager()

BindingManager Dragengine.Scenery.ECBehaviorVRHand.Instance.getBindingManager ( )

Binding manager.

◆ getCollider()

ECComposeCollider Dragengine.Scenery.ECBehaviorVRHand.Instance.getCollider ( )

Composeable collider for element class.

Version
1.7

◆ getComponent()

ECBehaviorComponent Dragengine.Scenery.ECBehaviorVRHand.Instance.getComponent ( )

Component behavior.

◆ getInputDeviceType()

InputDeviceType Dragengine.Scenery.ECBehaviorVRHand.Instance.getInputDeviceType ( )

Input device type.

◆ getShowHand()

ECPBoolean Dragengine.Scenery.ECBehaviorVRHand.Instance.getShowHand ( )

Show hand.

◆ getUseVendorModel()

ECPBoolean Dragengine.Scenery.ECBehaviorVRHand.Instance.getUseVendorModel ( )

Use vendor model.

◆ getVRPlayspace()

ECBehaviorVRPlayspace Dragengine.Scenery.ECBehaviorVRHand.Instance.getVRPlayspace ( )

VR Playspace behavior.

◆ new() [1/8]

Instance Dragengine.Scenery.ECBehaviorVRHand.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorVRPlayspace  vrPlayspace,
InputDeviceType  inputDeviceType 
)

Create behavior element class.

◆ new() [2/8]

Instance Dragengine.Scenery.ECBehaviorVRHand.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorVRPlayspace  vrPlayspace,
InputDeviceType  inputDeviceType,
BindingManager  bindingManager 
)

Create behavior element class.

◆ new() [3/8]

Instance Dragengine.Scenery.ECBehaviorVRHand.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorVRPlayspace  vrPlayspace,
InputDeviceType  inputDeviceType,
BindingManager  bindingManager,
String  id 
)

Create behavior element class.

◆ new() [4/8]

Instance Dragengine.Scenery.ECBehaviorVRHand.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorVRPlayspace  vrPlayspace,
InputDeviceType  inputDeviceType,
BindingManager  bindingManager,
String  id,
String  subID 
)

Create behavior element class.

◆ new() [5/8]

Instance Dragengine.Scenery.ECBehaviorVRHand.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorVRPlayspace  vrPlayspace,
InputDeviceType  inputDeviceType,
BindingManager  bindingManager,
String  id,
String  subID,
String  prefix 
)

Create behavior element class.

◆ new() [6/8]

Instance Dragengine.Scenery.ECBehaviorVRHand.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorVRPlayspace  vrPlayspace,
InputDeviceType  inputDeviceType,
String  id 
)

Create behavior element class.

◆ new() [7/8]

Instance Dragengine.Scenery.ECBehaviorVRHand.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorVRPlayspace  vrPlayspace,
InputDeviceType  inputDeviceType,
String  id,
String  subID 
)

Create behavior element class.

◆ new() [8/8]

Instance Dragengine.Scenery.ECBehaviorVRHand.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorVRPlayspace  vrPlayspace,
InputDeviceType  inputDeviceType,
String  id,
String  subID,
String  prefix 
)

Create behavior element class.

◆ setGhost()

void Dragengine.Scenery.ECBehaviorVRHand.Instance.setGhost ( )

Set up collider as ghost collider.

Version
1.7

Ghost colliders have empty collision filter and kinematic collision response. They collide with nothing and are useful to interact with the game world without physically pushing objects by accident.

◆ setPhysics()

void Dragengine.Scenery.ECBehaviorVRHand.Instance.setPhysics ( )

Set up collider as kinematic collider.

Version
1.10

Kinematic colliders have kinematic collision response, collision category BaseGameApp.CollisionFilterBit.geometry and filter BaseGameApp.CollisionFilterBit.dynamic and BaseGameApp.CollisionFilterBit.particle. They collide with PhysicsElementClass and SimpleElementClass and allow hands to physically push objects.


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