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