Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Public Member Functions | |
void | addListener (Listener listener) |
Add listener. More... | |
DMatrix | calcTestMatrix () |
Calculate test matrix. More... | |
void | clearTestCollider () |
Clear test collider reverting to ray-tracing. More... | |
void | dispose () |
Dispose of composeable instance. More... | |
ECBehaviorVRHandPointAt | getECBehavior () |
Behavior. More... | |
bool | getEnabled () |
Enable point-at. More... | |
Vector | getOrigin () |
Test origin. More... | |
BehaviorElement | getPointAtBehaviorElement () |
Point-at element if of type BehaviorElement or null. More... | |
int | getPointAtBone () |
Point-at bone or -1. More... | |
String | getPointAtBoneName () |
Point-at bone name or null. More... | |
Collider | getPointAtCollider () |
Point-at collider or null. More... | |
DVector | getPointAtDirection () |
Test direction used for last point-at test. More... | |
float | getPointAtDistance () |
Distance in meters to point-at hit point. More... | |
Element | getPointAtElement () |
Point-at element or null. More... | |
DVector | getPointAtHitPoint () |
Point-at hit point or null. More... | |
DVector | getPointAtOrigin () |
Test origin used for last point-at test. More... | |
float | getRange () |
Test range. More... | |
Vector | getRotation () |
Test direction rotation. More... | |
ECBehaviorVRHand.Instance | getVRHand () |
VR Hand behavior instance. More... | |
bool | hasNotVRHandPointAtElement () |
Is not looking at an element. More... | |
bool | hasVRHandPointAtElement () |
Is looking at an element. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | new (ECBehaviorVRHandPointAt ecbehavior, BehaviorElement element) |
Create element. More... | |
void | postThink (float elapsed) |
Post thinking after physics processing is finished. More... | |
void | removeListener (Listener listener) |
Remove listener. More... | |
void | setCollisionFilter (CollisionFilter filter) |
Set test collision filter. More... | |
void | setEnabled (bool enabled) |
Set if point-at is enabled. More... | |
void | setOrigin (Vector origin) |
Set test origin. More... | |
void | setPointAtElement (Element element, int bone, String boneName, float distance, Collider collider) |
Set point-at element. More... | |
void | setRange (float range) |
Set test range. More... | |
void | setRotation (Vector rotation) |
Set test direction rotation. More... | |
void | setSphereTestCollider (float radius) |
Set shape of test collider to sphere. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write behavior to file. 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... | |
DefaultECBehaviorInstance | new (BehaviorElement element) |
Create default composeable instance. 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... | |
Public Attributes | |
CollisionFilter | pCollisionFilter |
ECBehaviorVRHandPointAt | pECBehavior |
bool | pEnabled |
Array | pListeners |
Vector | pOrigin |
int | pPointAtBone |
String | pPointAtBoneName |
Collider | pPointAtCollider |
DVector | pPointAtDirection |
float | pPointAtDistance |
Element | pPointAtElement |
DVector | pPointAtHitPoint |
DVector | pPointAtOrigin |
float | pRange |
Vector | pRotation |
ShapeList | pShape |
ColliderCollisionTest | pTest |
ECBehaviorVRHand.Instance | pVRHand |
Protected Member Functions | |
void | evaluateTest () |
Evaluate last test. More... | |
ColliderCollisionTest | getTest () |
Collision test. More... | |
void | update (float elapsed) |
Update. More... | |
void | updateTestParameters () |
Update test parameters. More... | |
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.ECBehaviorVRHandPointAt.Instance.addListener | ( | Listener | listener | ) |
Add listener.
DMatrix Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.calcTestMatrix | ( | ) |
Calculate test matrix.
Works no matter if point-at testing is enabled or not. Allows to figure out where the test origin and orientation would be if enabled.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.clearTestCollider | ( | ) |
Clear test collider reverting to ray-tracing.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.dispose | ( | ) |
Dispose of composeable instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
protected |
Evaluate last test.
ECBehaviorVRHandPointAt Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getECBehavior | ( | ) |
Behavior.
bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getEnabled | ( | ) |
Enable point-at.
Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getOrigin | ( | ) |
Test origin.
BehaviorElement Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtBehaviorElement | ( | ) |
Point-at element if of type BehaviorElement or null.
int Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtBone | ( | ) |
Point-at bone or -1.
String Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtBoneName | ( | ) |
Point-at bone name or null.
Collider Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtCollider | ( | ) |
Point-at collider or null.
DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtDirection | ( | ) |
Test direction used for last point-at test.
float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtDistance | ( | ) |
Distance in meters to point-at hit point.
Element Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtElement | ( | ) |
Point-at element or null.
DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtHitPoint | ( | ) |
Point-at hit point or null.
DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtOrigin | ( | ) |
Test origin used for last point-at test.
float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getRange | ( | ) |
Test range.
Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getRotation | ( | ) |
Test direction rotation.
|
protected |
Collision test.
ECBehaviorVRHand.Instance Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getVRHand | ( | ) |
VR Hand behavior instance.
bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.hasNotVRHandPointAtElement | ( | ) |
Is not looking at an element.
bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.hasVRHandPointAtElement | ( | ) |
Is looking at an element.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.new | ( | ECBehaviorVRHandPointAt | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.postThink | ( | float | elapsed | ) |
Post thinking after physics processing is finished.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setCollisionFilter | ( | CollisionFilter | filter | ) |
Set test collision filter.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setEnabled | ( | bool | enabled | ) |
Set if point-at is enabled.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setOrigin | ( | Vector | origin | ) |
Set test origin.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setPointAtElement | ( | Element | element, |
int | bone, | ||
String | boneName, | ||
float | distance, | ||
Collider | collider | ||
) |
Set point-at element.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setRange | ( | float | range | ) |
Set test range.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setRotation | ( | Vector | rotation | ) |
Set test direction rotation.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setSphereTestCollider | ( | float | radius | ) |
Set shape of test collider to sphere.
By default no shape is set in which case ra-ytesting is used. Using shapes like a sphere is useful to enlarge the hit area for example with 3rd person views.
|
protected |
Update.
|
protected |
Update test parameters.
void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write behavior to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
CollisionFilter Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pCollisionFilter |
ECBehaviorVRHandPointAt Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pECBehavior |
bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pEnabled |
Array Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pListeners |
Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pOrigin |
int Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtBone |
String Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtBoneName |
Collider Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtCollider |
DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtDirection |
float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtDistance |
Element Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtElement |
DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtHitPoint |
DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtOrigin |
float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pRange |
Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pRotation |
ShapeList Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pShape |
ColliderCollisionTest Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pTest |
ECBehaviorVRHand.Instance Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pVRHand |