Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance Class Reference

Behavior instance. More...

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

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.

Detailed Description

Behavior instance.

Member Function Documentation

◆ addListener()

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

Add listener.

◆ calcTestMatrix()

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.

◆ clearTestCollider()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.clearTestCollider ( )

Clear test collider reverting to ray-tracing.

References hasVRHandPointAtElement().

◆ dispose()

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

Dispose of composeable instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Referenced by getPointAtBone(), and hasVRHandPointAtElement().

◆ evaluateTest()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.evaluateTest ( )
protected

Evaluate last test.

References new(), and pTest.

◆ getECBehavior()

ECBehaviorVRHandPointAt Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getECBehavior ( )

Behavior.

◆ getEnabled()

bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getEnabled ( )

Enable point-at.

References new().

Referenced by setEnabled().

◆ getNextTestBone()

String Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getNextTestBone ( )

Next test bone name or empty string.

Version
1.28

References new(), pECBehavior, and pListeners.

◆ getNextTestOrigin()

Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getNextTestOrigin ( )

Next test origin.

Version
1.28

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.

◆ getNextTestRotation()

Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getNextTestRotation ( )

Next test direction scaled by range.

Version
1.28

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.

◆ getOrigin()

Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getOrigin ( )

Test origin.

Referenced by getPointAtDirection().

◆ getPointAtBehaviorElement()

BehaviorElement Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtBehaviorElement ( )

Point-at element if of type BehaviorElement or null.

◆ getPointAtBone()

int Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtBone ( )

Point-at bone or -1.

References dispose().

◆ getPointAtBoneName()

String Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtBoneName ( )

Point-at bone name or null.

◆ getPointAtCollider()

Collider Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtCollider ( )

Point-at collider or null.

References Dragengine.Scenery.DefaultECBehaviorInstance.getElement().

◆ getPointAtDirection()

DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtDirection ( )

◆ getPointAtDistance()

float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtDistance ( )

Distance in meters to point-at hit point.

References init(), and pVRHand.

Referenced by setCollisionFilter().

◆ getPointAtElement()

Element Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtElement ( )

Point-at element or null.

References getVRHand(), pEnabled, and pVRHand.

◆ getPointAtHitPoint()

DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtHitPoint ( )

Point-at hit point or null.

References new().

◆ getPointAtOrigin()

DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getPointAtOrigin ( )

◆ getRange()

float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getRange ( )

Test range.

◆ getRotation()

Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getRotation ( )

Test direction rotation.

Referenced by getPointAtDirection().

◆ getTest()

ColliderCollisionTest Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getTest ( )
protected

Collision test.

◆ getVRHand()

ECBehaviorVRHand.Instance Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.getVRHand ( )

VR Hand behavior instance.

Referenced by getPointAtElement().

◆ hasNotVRHandPointAtElement()

bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.hasNotVRHandPointAtElement ( )

Is not looking at an element.

References pBTSMs, pListeners, and pPointAtElement.

◆ hasVRHandPointAtElement()

bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.hasVRHandPointAtElement ( )

Is looking at an element.

References dispose(), pTest, and pVRHand.

Referenced by clearTestCollider().

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Referenced by getPointAtDistance().

◆ new()

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

◆ postThink()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.postThink ( float elapsed)

Post thinking after physics processing is finished.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeListener()

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

◆ setCollisionFilter()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setCollisionFilter ( CollisionFilter filter)

Set test collision filter.

References getPointAtDistance().

◆ setEnabled()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setEnabled ( bool enabled)

Set if point-at is enabled.

References getEnabled().

Referenced by updatePostThink().

◆ setOrigin()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setOrigin ( Vector origin)

Set test origin.

◆ setPointAtElement()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setPointAtElement ( Element element,
int bone,
String boneName,
float distance,
Collider collider )

◆ setRange()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setRange ( float range)

Set test range.

◆ setRotation()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.setRotation ( Vector rotation)

◆ setSphereTestCollider()

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.

◆ think()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.think ( float elapsed)

Thinking.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

References new(), and pTest.

◆ updatePostThink()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.updatePostThink ( float elapsed)
protected

Update post think.

References pShape, pTest, and setEnabled().

◆ updateTestParameters()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.updateTestParameters ( )
protected

◆ updateThink()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.updateThink ( float elapsed)
protected

Update.

References new(), and pTest.

◆ writeToFile()

void Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.writeToFile ( PersistencyEnvironment env,
FileWriter writer )

Member Data Documentation

◆ pBTSMs

ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pBTSMs

◆ pCollisionFilter

CollisionFilter Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pCollisionFilter

Referenced by getPointAtOrigin(), and setRotation().

◆ pECBehavior

◆ pEnabled

bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pEnabled

Referenced by getPointAtElement(), and setRotation().

◆ pListeners

Array Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pListeners

◆ pOrigin

Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pOrigin

Referenced by getPointAtDirection(), and setRotation().

◆ pPointAtBone

int Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtBone

Referenced by getNextTestOrigin().

◆ pPointAtBoneName

String Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtBoneName

Referenced by getNextTestOrigin().

◆ pPointAtCollider

Collider Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtCollider

Referenced by getNextTestRotation().

◆ pPointAtDistance

float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtDistance

Referenced by getNextTestOrigin().

◆ pPointAtElement

Element Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtElement

◆ pPointAtHitPoint

DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtHitPoint

Referenced by getNextTestOrigin().

◆ pPointAtOrigin

DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtOrigin

Referenced by getNextTestOrigin().

◆ pRange

float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pRange

◆ pShape

ShapeList Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pShape

◆ pTest

ColliderCollisionTest Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pTest

◆ pVRHand

ECBehaviorVRHand.Instance Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pVRHand

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