|
Drag[en]gine Script Module DragonScript 1.35
|
Behavior instance. More...
Public Member Functions | |
| void | addListener (Listener listener) |
| Add listener. | |
| DMatrix | calcTestMatrix () |
| Calculate test matrix. | |
| void | clearTestCollider () |
| Clear test collider reverting to ray-tracing. | |
| void | dispose () |
| Dispose of composeable instance. | |
| ECBehaviorVRHandPointAt | getECBehavior () |
| Behavior. | |
| bool | getEnabled () |
| Enable point-at. | |
| String | getNextTestBone () |
| Next test bone name or empty string. | |
| Vector | getNextTestOrigin () |
| Next test origin. | |
| Vector | getNextTestRotation () |
| Next test direction scaled by range. | |
| Vector | getOrigin () |
| Test origin. | |
| BehaviorElement | getPointAtBehaviorElement () |
| Point-at element if of type BehaviorElement or null. | |
| int | getPointAtBone () |
| Point-at bone or -1. | |
| String | getPointAtBoneName () |
| Point-at bone name or null. | |
| Collider | getPointAtCollider () |
| Point-at collider or null. | |
| DVector | getPointAtDirection () |
| Test direction used for last point-at test. | |
| float | getPointAtDistance () |
| Distance in meters to point-at hit point. | |
| Element | getPointAtElement () |
| Point-at element or null. | |
| DVector | getPointAtHitPoint () |
| Point-at hit point or null. | |
| DVector | getPointAtOrigin () |
| Test origin used for last point-at test. | |
| float | getRange () |
| Test range. | |
| Vector | getRotation () |
| Test direction rotation. | |
| ECBehaviorVRHand.Instance | getVRHand () |
| VR Hand behavior instance. | |
| bool | hasNotVRHandPointAtElement () |
| Is not looking at an element. | |
| bool | hasVRHandPointAtElement () |
| Is looking at an element. | |
| void | init (StubElement stub) |
| Initialize element from stub. | |
| Instance | new (ECBehaviorVRHandPointAt ecbehavior, BehaviorElement element) |
| Create element. | |
| void | postThink (float elapsed) |
| Post thinking after physics processing is finished. | |
| void | removeListener (Listener listener) |
| Remove listener. | |
| void | setCollisionFilter (CollisionFilter filter) |
| Set test collision filter. | |
| void | setEnabled (bool enabled) |
| Set if point-at is enabled. | |
| void | setOrigin (Vector origin) |
| Set test origin. | |
| void | setPointAtElement (Element element, int bone, String boneName, float distance, Collider collider) |
| Set point-at element. | |
| void | setRange (float range) |
| Set test range. | |
| void | setRotation (Vector rotation) |
| Set test direction rotation. | |
| void | setSphereTestCollider (float radius) |
| Set shape of test collider to sphere. | |
| void | think (float elapsed) |
| Thinking. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
| Write behavior to file. | |
| Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| void | addToGameWorld () |
| Add element to game world. | |
| void | attachToParent (Element parent) |
| Attach element to object set by the mapper in the IGDE World Editor. | |
| void | enterFrame () |
| Frame update started. | |
| void | geometryChanged () |
| Position or orientation changed. | |
| BehaviorElement | getElement () |
| Behavior element to apply behavior to. | |
| int | getInstanceIndex () |
| Behavior instance index. | |
| DefaultECBehaviorInstance | new (BehaviorElement element) |
| Create default composeable instance. | |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read behavior instance from file. | |
| void | removeFromGameWorld () |
| Remove element from game world. | |
| bool | requiresEnterFrame () |
| Behavior instance requires enterFrame() to be called. | |
| bool | requiresThink () |
| Behavior instance requires think() to be called. | |
| void | stateChanged () |
| State changed (visble, touchable). | |
Public Attributes | |
| ECComposeBTSM.Instance | pBTSMs |
| CollisionFilter | pCollisionFilter |
| ECBehaviorVRHandPointAt | pECBehavior |
| bool | pEnabled |
| Array | pListeners |
| Vector | pOrigin |
| int | pPointAtBone |
| String | pPointAtBoneName |
| Collider | pPointAtCollider |
| float | pPointAtDistance |
| Element | pPointAtElement |
| DVector | pPointAtHitPoint |
| DVector | pPointAtOrigin |
| float | pRange |
| ShapeList | pShape |
| ColliderCollisionTest | pTest |
| ECBehaviorVRHand.Instance | pVRHand |
| Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| BehaviorElement | pElement |
| int | pInstanceIndex |
| bool | pRequiresEnterFrame |
| bool | pRequiresThink |
Protected Member Functions | |
| void | evaluateTest () |
| Evaluate last test. | |
| ColliderCollisionTest | getTest () |
| Collision test. | |
| void | updatePostThink (float elapsed) |
| Update post think. | |
| void | updateTestParameters () |
| Update test parameters. | |
| void | updateThink (float elapsed) |
| Update. | |
| Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| void | setRequiresEnterFrame (bool required) |
| Set if behavior instance requires enterFrame() to be called. | |
| void | setRequiresThink (bool required) |
| Set if behavior instance requires think() to be called. | |
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.
References Dragengine.Scenery.ECBehaviorVRHandPointAt.getIgnoreCollider(), and pECBehavior.
| void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.clearTestCollider | ( | ) |
Clear test collider reverting to ray-tracing.
References hasVRHandPointAtElement().
| void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.dispose | ( | ) |
Dispose of composeable instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Referenced by getPointAtBone(), and hasVRHandPointAtElement().
|
protected |
| ECBehaviorVRHandPointAt Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getECBehavior | ( | ) |
Behavior.
| bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getEnabled | ( | ) |
| String Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getNextTestBone | ( | ) |
| Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getNextTestOrigin | ( | ) |
Next test origin.
If input device is not hand interaction this returns getOrigin(). If input device is hand interaction this returns the per frame calculated test origin
References pPointAtBone, pPointAtBoneName, pPointAtDistance, pPointAtElement, pPointAtHitPoint, pPointAtOrigin, and pRange.
| Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getNextTestRotation | ( | ) |
Next test direction scaled by range.
If input device is not hand interaction this returns getRotation(). If input device is hand interaction this returns the per frame calculated test rotation.
References pBTSMs, pListeners, and pPointAtCollider.
| Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getOrigin | ( | ) |
Test origin.
Referenced by getPointAtDirection().
| 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.
References dispose().
| String Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtBoneName | ( | ) |
Point-at bone name or null.
| Collider Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtCollider | ( | ) |
Point-at collider or null.
References Dragengine.Scenery.DefaultECBehaviorInstance.getElement().
| DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtDirection | ( | ) |
Test direction used for last point-at test.
References getOrigin(), getRotation(), Dragengine.Scenery.ECBehaviorVRHandPointAt.getShape(), pECBehavior, pOrigin, pRange, Dragengine.Scenery.ECBehaviorVRHandPointAt.pRotation, and pShape.
| float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtDistance | ( | ) |
Distance in meters to point-at hit point.
References init(), and pVRHand.
Referenced by setCollisionFilter().
| Element Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtElement | ( | ) |
Point-at element or null.
References getVRHand(), pEnabled, and pVRHand.
| DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtHitPoint | ( | ) |
Point-at hit point or null.
References new().
| DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtOrigin | ( | ) |
Test origin used for last point-at test.
References Dragengine.Scenery.ECBehaviorVRHandPointAt.getCollisionFilter(), Dragengine.Scenery.ECBehaviorVRHandPointAt.getCollisionFilterProperty(), pCollisionFilter, and pECBehavior.
| float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getRange | ( | ) |
Test range.
| Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getRotation | ( | ) |
Test direction rotation.
Referenced by getPointAtDirection().
|
protected |
Collision test.
| ECBehaviorVRHand.Instance Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getVRHand | ( | ) |
VR Hand behavior instance.
Referenced by getPointAtElement().
| bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.hasNotVRHandPointAtElement | ( | ) |
Is not looking at an element.
References pBTSMs, pListeners, and pPointAtElement.
| bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.hasVRHandPointAtElement | ( | ) |
Is looking at an element.
References dispose(), pTest, and pVRHand.
Referenced by clearTestCollider().
| void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Referenced by getPointAtDistance().
| Instance Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.new | ( | ECBehaviorVRHandPointAt | ecbehavior, |
| BehaviorElement | element ) |
Create element.
Referenced by evaluateTest(), getEnabled(), getNextTestBone(), getPointAtHitPoint(), think(), updateThink(), and writeToFile().
| 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.
References Dragengine.Scenery.ECBehaviorVRHandPointAt.getTestBone(), and pECBehavior.
| void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setCollisionFilter | ( | CollisionFilter | filter | ) |
Set test collision filter.
References getPointAtDistance().
| void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setEnabled | ( | bool | 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.
References Dragengine.Scenery.DefaultECBehaviorInstance.setRequiresThink().
| void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setRange | ( | float | range | ) |
Set test range.
| void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setRotation | ( | Vector | rotation | ) |
Set test direction rotation.
References pCollisionFilter, pECBehavior, pEnabled, pOrigin, Dragengine.Scenery.ECBehaviorVRHandPointAt.pRotation, pShape, pTest, and pVRHand.
| 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.
| void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.think | ( | float | elapsed | ) |
Thinking.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
protected |
Update post think.
References pShape, pTest, and setEnabled().
|
protected |
Update test parameters.
References Dragengine.Scenery.ECBehaviorVRHandPointAt.createListeners(), and pECBehavior.
|
protected |
| void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.writeToFile | ( | PersistencyEnvironment | env, |
| FileWriter | writer ) |
Write behavior to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
References Dragengine.Scenery.ECBehaviorVRHandPointAt.getBTSMs(), Dragengine.Scenery.ECBehaviorVRHandPointAt.getPrefix(), new(), pBTSMs, and pECBehavior.
| ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pBTSMs |
Referenced by getNextTestRotation(), hasNotVRHandPointAtElement(), and writeToFile().
| CollisionFilter Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pCollisionFilter |
Referenced by getPointAtOrigin(), and setRotation().
| ECBehaviorVRHandPointAt Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pECBehavior |
| bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pEnabled |
Referenced by getPointAtElement(), and setRotation().
| Array Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pListeners |
Referenced by getNextTestBone(), getNextTestRotation(), and hasNotVRHandPointAtElement().
| Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pOrigin |
Referenced by getPointAtDirection(), and setRotation().
| int Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtBone |
Referenced by getNextTestOrigin().
| String Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtBoneName |
Referenced by getNextTestOrigin().
| Collider Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtCollider |
Referenced by getNextTestRotation().
| float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtDistance |
Referenced by getNextTestOrigin().
| Element Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtElement |
Referenced by getNextTestOrigin(), and hasNotVRHandPointAtElement().
| DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtHitPoint |
Referenced by getNextTestOrigin().
| DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtOrigin |
Referenced by getNextTestOrigin().
| float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pRange |
Referenced by getNextTestOrigin(), and getPointAtDirection().
| ShapeList Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pShape |
Referenced by getPointAtDirection(), setRotation(), and updatePostThink().
| ColliderCollisionTest Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pTest |
Referenced by evaluateTest(), hasVRHandPointAtElement(), setRotation(), think(), updatePostThink(), and updateThink().
| ECBehaviorVRHand.Instance Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pVRHand |
Referenced by getPointAtDistance(), getPointAtElement(), hasVRHandPointAtElement(), and setRotation().