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

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorVRHMD.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ECBehaviorInstance

Classes

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

Public Member Functions

void addListener (Listener listener)
 Add listener. More...
 
void addToGameWorld ()
 Element has been added to game world. Start tracking device. More...
 
void dispose ()
 Dispose of instance. More...
 
ECBehaviorVRHMD getECBehavior ()
 Behavior. More...
 
InputDevice getInputDevice ()
 Input device or null if detached. More...
 
DMatrix getInverseMatrix ()
 Inverse matrix. More...
 
Matrix getInverseMatrixPlayspace ()
 Inverse playspace local matrix. More...
 
DMatrix getMatrix ()
 Matrix. More...
 
Matrix getMatrixPlayspace ()
 Playspace local matrix. More...
 
Quaternion getOrientation ()
 Orientation. More...
 
Quaternion getOrientationPlayspace ()
 Playspace local orientation. More...
 
DVector getPosition ()
 Position. More...
 
Vector getPositionPlayspace ()
 Playspace local position. More...
 
ECBehaviorVRPlayspace.Instance getVRPlayspace ()
 VR Playspace. More...
 
void init (StubElement stub)
 Initialize behavior from stub. More...
 
bool isAttached ()
 HMD is attached. More...
 
bool isDetached ()
 HMD is detached. More...
 
Instance new (ECBehaviorVRHMD ecbehavior, BehaviorElement element)
 Create instance. More...
 
void removeFromGameWorld ()
 Element has been removed from game world. Stop tracking device. More...
 
void removeListener (Listener listener)
 Remove listener. More...
 
void setInputDevice (InputDevice device)
 Set input device or null if detached. More...
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
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...
 
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...
 
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...
 

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

◆ addListener()

void Dragengine.Scenery.ECBehaviorVRHMD.Instance.addListener ( Listener  listener)

Add listener.

◆ addToGameWorld()

void Dragengine.Scenery.ECBehaviorVRHMD.Instance.addToGameWorld ( )

Element has been added to game world. Start tracking device.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ dispose()

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

Dispose of instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getECBehavior()

ECBehaviorVRHMD Dragengine.Scenery.ECBehaviorVRHMD.Instance.getECBehavior ( )

Behavior.

◆ getInputDevice()

InputDevice Dragengine.Scenery.ECBehaviorVRHMD.Instance.getInputDevice ( )

Input device or null if detached.

◆ getInverseMatrix()

DMatrix Dragengine.Scenery.ECBehaviorVRHMD.Instance.getInverseMatrix ( )

Inverse matrix.

Note
Position and orientation are queried each time the function is called.

◆ getInverseMatrixPlayspace()

Matrix Dragengine.Scenery.ECBehaviorVRHMD.Instance.getInverseMatrixPlayspace ( )

Inverse playspace local matrix.

Note
Position and orientation are queried each time the function is called.

◆ getMatrix()

DMatrix Dragengine.Scenery.ECBehaviorVRHMD.Instance.getMatrix ( )

Matrix.

Note
Position and orientation are queried each time the function is called.

◆ getMatrixPlayspace()

Matrix Dragengine.Scenery.ECBehaviorVRHMD.Instance.getMatrixPlayspace ( )

Playspace local matrix.

Note
Position and orientation are queried each time the function is called.

◆ getOrientation()

Quaternion Dragengine.Scenery.ECBehaviorVRHMD.Instance.getOrientation ( )

Orientation.

Note
Orientation is queried each time the function is called.

◆ getOrientationPlayspace()

Quaternion Dragengine.Scenery.ECBehaviorVRHMD.Instance.getOrientationPlayspace ( )

Playspace local orientation.

Note
Orientation is queried each time the function is called.

◆ getPosition()

DVector Dragengine.Scenery.ECBehaviorVRHMD.Instance.getPosition ( )

Position.

Note
Position is queried each time the function is called.

◆ getPositionPlayspace()

Vector Dragengine.Scenery.ECBehaviorVRHMD.Instance.getPositionPlayspace ( )

Playspace local position.

Note
Position is queried each time the function is called.

◆ getVRPlayspace()

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

VR Playspace.

◆ init()

void Dragengine.Scenery.ECBehaviorVRHMD.Instance.init ( StubElement  stub)

Initialize behavior from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ isAttached()

bool Dragengine.Scenery.ECBehaviorVRHMD.Instance.isAttached ( )

HMD is attached.

◆ isDetached()

bool Dragengine.Scenery.ECBehaviorVRHMD.Instance.isDetached ( )

HMD is detached.

◆ new()

Instance Dragengine.Scenery.ECBehaviorVRHMD.Instance.new ( ECBehaviorVRHMD  ecbehavior,
BehaviorElement  element 
)

Create instance.

◆ removeFromGameWorld()

void Dragengine.Scenery.ECBehaviorVRHMD.Instance.removeFromGameWorld ( )

Element has been removed from game world. Stop tracking device.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeListener()

void Dragengine.Scenery.ECBehaviorVRHMD.Instance.removeListener ( Listener  listener)

Remove listener.

◆ setInputDevice()

void Dragengine.Scenery.ECBehaviorVRHMD.Instance.setInputDevice ( InputDevice  device)

Set input device or null if detached.


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