Drag[en]gine Script Module DragonScript  1.21
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. 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...
 

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.

◆ clearTestCollider()

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

Clear test collider reverting to ray-tracing.

◆ dispose()

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

Dispose of composeable instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ evaluateTest()

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

Evaluate last test.

◆ getECBehavior()

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

Behavior.

◆ getEnabled()

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

Enable point-at.

◆ getOrigin()

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

Test origin.

◆ 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.

◆ 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.

◆ getPointAtDirection()

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

Test direction used for last point-at test.

◆ getPointAtDistance()

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

Distance in meters to point-at hit point.

◆ getPointAtElement()

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

Point-at element or null.

◆ getPointAtHitPoint()

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

Point-at hit point or null.

◆ getPointAtOrigin()

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

Test origin used for last point-at test.

◆ getRange()

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

Test range.

◆ getRotation()

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

Test direction rotation.

◆ getTest()

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

Collision test.

◆ getVRHand()

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

VR Hand behavior instance.

◆ hasNotVRHandPointAtElement()

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

Is not looking at an element.

◆ hasVRHandPointAtElement()

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

Is looking at an element.

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

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

Create 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)

Remove listener.

◆ setCollisionFilter()

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

Set test collision filter.

◆ setEnabled()

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

Set if point-at is enabled.

◆ 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 
)

Set point-at element.

◆ setRange()

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

Set test range.

◆ setRotation()

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

Set test direction 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.

◆ update()

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

Update.

◆ updateTestParameters()

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

Update test parameters.

◆ writeToFile()

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

Write behavior to file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Member Data Documentation

◆ pCollisionFilter

CollisionFilter Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pCollisionFilter

◆ pECBehavior

ECBehaviorVRHandPointAt Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pECBehavior

◆ pEnabled

bool Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pEnabled

◆ pListeners

Array Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pListeners

◆ pOrigin

Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pOrigin

◆ pPointAtBone

int Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtBone

◆ pPointAtBoneName

String Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtBoneName

◆ pPointAtCollider

Collider Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtCollider

◆ pPointAtDirection

DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtDirection

◆ pPointAtDistance

float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtDistance

◆ pPointAtElement

Element Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtElement

◆ pPointAtHitPoint

DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtHitPoint

◆ pPointAtOrigin

DVector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pPointAtOrigin

◆ pRange

float Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pRange

◆ pRotation

Vector Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance.pRotation

◆ 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: