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

Behavior instance. More...

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

Classes

class  AttachDetachChangedListener
 Input device listener. More...

Public Member Functions

void addListenerFactory (Block blockFactory)
 Add listener factory using block.
void addListenerFactory (ListenerFactory factory)
 Add listener factory.
void createListeners (Instance instance)
 Create listeners from factories adding them to behavior instance.
void dispose ()
 Dispose of behavior.
void forEachListenerFactory (Block ablock)
 Visit listener factories with block with argument ListenerFactory.
ECBehaviorActorAnimated getActorAnimated ()
 Actor animated behavior.
BindingManager getBindingManager ()
 Binding manager.
ECPString getBoneChest ()
 Chest bone name.
ECPString getBoneHead ()
 Head bone name.
ECPString getBoneHips ()
 Hips bone name.
ECPString getBoneLeftArmLower ()
 Left lower arm bone name.
ECPString getBoneLeftArmUpper ()
 Left upper arm bone name.
ECPString getBoneLeftFootAnkle ()
 Left foot ankle bone name.
ECPString getBoneLeftFootAnkleTwist ()
 Left foot ankle twist bone name.
ECPString getBoneLeftFootBall ()
 Left foot ball bone name.
ECPString getBoneLeftFootSubtalar ()
 Left foot subtalar bone name.
ECPString getBoneLeftFootTransverse ()
 Left foot transverse bone name.
ECPString getBoneLeftHandWrist ()
 Left hand wrist bone name.
ECPString getBoneLeftHandWristTwist ()
 Left hand wrist twist bone name.
ECPString getBoneLeftLowerLeg ()
 Left lower leg bone name.
ECPString getBoneLeftScapula ()
 Left scapula bone name.
ECPString getBoneLeftShoulder ()
 Left shoulder bone name.
ECPString getBoneLeftUpperLeg ()
 Left upper leg bone name.
ECPString getBoneNeck ()
 Neck bone name.
ECPString getBoneOrigin ()
 Origin bone name.
ECPString getBoneRightArmLower ()
 Right lower arm bone name.
ECPString getBoneRightArmUpper ()
 Right upper arm bone name.
ECPString getBoneRightFootAnkle ()
 Right foot ankle bone name.
ECPString getBoneRightFootAnkleTwist ()
 Right foot ankle twist bone name.
ECPString getBoneRightFootBall ()
 Right foot ball bone name.
ECPString getBoneRightFootSubtalar ()
 Right foot subtalar bone name.
ECPString getBoneRightFootTransverse ()
 Right foot transverse bone name.
ECPString getBoneRightHandWrist ()
 Right hand wrist bone name.
ECPString getBoneRightHandWristTwist ()
 Right hand wrist twist bone name.
ECPString getBoneRightLowerLeg ()
 Right lower leg bone name.
ECPString getBoneRightScapula ()
 Right scapula bone name.
ECPString getBoneRightShoulder ()
 Right shoulder bone name.
ECPString getBoneRightUpperLeg ()
 Right upper leg bone name.
ECPString getBoneSpineLower ()
 Spine lower bone name.
ECPString getBoneSpineMiddle ()
 Spine middle bone name.
ECPString getBoneSpineUpper ()
 Spine upper bone name.
ECComposeBTSM getBTSMs ()
 Compose behavior trees and state machines.
ECPBoolean getEnabled ()
 Enable body pose.
ECPBoolean getEnableLowerBody ()
 Enable lower body bones if supported by input device.
ECPBoolean getOnlyRotation ()
 Apply only rotation instead of position and rotation.
String getPrefix ()
 Prefix.
ECBehaviorVRPlayspace getVRPlayspace ()
 VR Playspace behavior.
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, ECBehaviorActorAnimated actorAnimated)
 Create behavior element class.
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, ECBehaviorActorAnimated actorAnimated, BindingManager bindingManager)
 Create behavior element class.
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, ECBehaviorActorAnimated actorAnimated, BindingManager bindingManager, String subID)
 Create behavior element class.
Instance new (BehaviorElementClass eclass, ECBehaviorVRPlayspace vrPlayspace, ECBehaviorActorAnimated actorAnimated, BindingManager bindingManager, String subID, String prefix)
 Create behavior element class.
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.
void init (StubElement stub)
 Initialize element from stub.
DefaultECBehaviorInstance new (BehaviorElement element)
 Create default composeable instance.
void postThink (float elapsed)
 Post thinking after physics processing is finished.
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).
void think (float elapsed)
 Think about what to do for the next frame update.
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior instance to file.

Static Public Member Functions

static ECBehaviorVRBody getBehaviorIn (BehaviorElementClass eclass)
 Get behavior in element class or null if absent.

Public Attributes

ECBehaviorActorAnimated pActorAnimated
BindingManager pBindingManager
ECPString pBoneChest
ECPString pBoneLeftArmUpper
ECPString pBoneLeftFootAnkle
ECPString pBoneLeftShoulder
ECPString pBoneLeftUpperLeg
ECPString pBoneOrigin
ECPString pBoneRightArmUpper
ECPString pBoneRightFootAnkle
ECPString pBoneRightShoulder
ECPString pBoneRightUpperLeg
ECPString pBoneSpineLower
ECComposeBTSM pBTSMs
Array pListenerFactories
ECPBoolean pOnlyRotation
String pPrefix
ECBehaviorVRPlayspace pVRPlayspace
Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance
BehaviorElement pElement
int pInstanceIndex
bool pRequiresEnterFrame
bool pRequiresThink

Additional Inherited Members

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

◆ addListenerFactory() [1/2]

void Dragengine.Scenery.ECBehaviorVRBody.Instance.addListenerFactory ( Block blockFactory)

Add listener factory using block.

Block receives as parameter Instance and returns Listener.

◆ addListenerFactory() [2/2]

void Dragengine.Scenery.ECBehaviorVRBody.Instance.addListenerFactory ( ListenerFactory factory)

Add listener factory.

Referenced by getBehaviorIn().

◆ createListeners()

void Dragengine.Scenery.ECBehaviorVRBody.Instance.createListeners ( Instance instance)

Create listeners from factories adding them to behavior instance.

References new().

Referenced by getBehaviorIn(), and getVRPlayspace().

◆ dispose()

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

Dispose of behavior.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Referenced by getBehaviorIn().

◆ forEachListenerFactory()

void Dragengine.Scenery.ECBehaviorVRBody.Instance.forEachListenerFactory ( Block ablock)

Visit listener factories with block with argument ListenerFactory.

Referenced by getBehaviorIn().

◆ getActorAnimated()

ECBehaviorActorAnimated Dragengine.Scenery.ECBehaviorVRBody.Instance.getActorAnimated ( )

◆ getBehaviorIn()

ECBehaviorVRBody Dragengine.Scenery.ECBehaviorVRBody.Instance.getBehaviorIn ( BehaviorElementClass eclass)
static

Get behavior in element class or null if absent.

Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorVRBody.

References addListenerFactory(), Dragengine.Scenery.DefaultECBehaviorInstance.addToGameWorld(), Dragengine.Scenery.ECBehavior.createInstance(), createListeners(), dispose(), forEachListenerFactory(), getActorAnimated(), getBehaviorIn(), getBindingManager(), getBoneChest(), getBoneHead(), getBoneHips(), getBoneLeftArmLower(), getBoneLeftArmUpper(), getBoneLeftFootAnkle(), getBoneLeftFootAnkleTwist(), getBoneLeftFootBall(), getBoneLeftFootSubtalar(), getBoneLeftFootTransverse(), getBoneLeftHandWrist(), getBoneLeftHandWristTwist(), getBoneLeftLowerLeg(), getBoneLeftScapula(), getBoneLeftShoulder(), getBoneLeftUpperLeg(), getBoneNeck(), getBoneOrigin(), getBoneRightArmLower(), getBoneRightArmUpper(), getBoneRightFootAnkle(), getBoneRightFootAnkleTwist(), getBoneRightFootBall(), getBoneRightFootSubtalar(), getBoneRightFootTransverse(), getBoneRightHandWrist(), getBoneRightHandWristTwist(), getBoneRightLowerLeg(), getBoneRightScapula(), getBoneRightShoulder(), getBoneRightUpperLeg(), getBoneSpineLower(), getBoneSpineMiddle(), getBoneSpineUpper(), getBTSMs(), getEnabled(), getEnableLowerBody(), getOnlyRotation(), getPrefix(), getVRPlayspace(), new(), pActorAnimated, pBindingManager, pBoneChest, pBoneLeftArmUpper, pBoneLeftFootAnkle, pBoneLeftShoulder, pBoneLeftUpperLeg, pBoneOrigin, pBoneRightArmUpper, pBoneRightFootAnkle, pBoneRightShoulder, pBoneRightUpperLeg, pBoneSpineLower, pBTSMs, pListenerFactories, pOnlyRotation, pPrefix, pVRPlayspace, and Dragengine.Scenery.DefaultECBehaviorInstance.removeFromGameWorld().

Referenced by getBehaviorIn().

◆ getBindingManager()

BindingManager Dragengine.Scenery.ECBehaviorVRBody.Instance.getBindingManager ( )

Binding manager.

Referenced by getBehaviorIn().

◆ getBoneChest()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneChest ( )

Chest bone name.

References pBoneOrigin.

Referenced by getBehaviorIn().

◆ getBoneHead()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneHead ( )

Head bone name.

Referenced by getBehaviorIn().

◆ getBoneHips()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneHips ( )

Hips bone name.

Referenced by getBehaviorIn().

◆ getBoneLeftArmLower()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftArmLower ( )

Left lower arm bone name.

References new().

Referenced by getBehaviorIn().

◆ getBoneLeftArmUpper()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftArmUpper ( )

Left upper arm bone name.

Referenced by getBehaviorIn().

◆ getBoneLeftFootAnkle()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftFootAnkle ( )

Left foot ankle bone name.

Referenced by getBehaviorIn().

◆ getBoneLeftFootAnkleTwist()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftFootAnkleTwist ( )

Left foot ankle twist bone name.

Referenced by getBehaviorIn().

◆ getBoneLeftFootBall()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftFootBall ( )

Left foot ball bone name.

Referenced by getBehaviorIn().

◆ getBoneLeftFootSubtalar()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftFootSubtalar ( )

Left foot subtalar bone name.

Referenced by getBehaviorIn().

◆ getBoneLeftFootTransverse()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftFootTransverse ( )

Left foot transverse bone name.

Referenced by getBehaviorIn().

◆ getBoneLeftHandWrist()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftHandWrist ( )

◆ getBoneLeftHandWristTwist()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftHandWristTwist ( )

Left hand wrist twist bone name.

Referenced by getBehaviorIn().

◆ getBoneLeftLowerLeg()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftLowerLeg ( )

Left lower leg bone name.

Referenced by getBehaviorIn().

◆ getBoneLeftScapula()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftScapula ( )

Left scapula bone name.

Referenced by getBehaviorIn().

◆ getBoneLeftShoulder()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftShoulder ( )

Left shoulder bone name.

References new(), and pBoneOrigin.

Referenced by getBehaviorIn().

◆ getBoneLeftUpperLeg()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneLeftUpperLeg ( )

Left upper leg bone name.

Referenced by getBehaviorIn().

◆ getBoneNeck()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneNeck ( )

Neck bone name.

Referenced by getBehaviorIn().

◆ getBoneOrigin()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneOrigin ( )

◆ getBoneRightArmLower()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightArmLower ( )

Right lower arm bone name.

Referenced by getBehaviorIn().

◆ getBoneRightArmUpper()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightArmUpper ( )

Right upper arm bone name.

Referenced by getBehaviorIn().

◆ getBoneRightFootAnkle()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightFootAnkle ( )

Right foot ankle bone name.

Referenced by getBehaviorIn().

◆ getBoneRightFootAnkleTwist()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightFootAnkleTwist ( )

Right foot ankle twist bone name.

Referenced by getBehaviorIn().

◆ getBoneRightFootBall()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightFootBall ( )

Right foot ball bone name.

Referenced by getBehaviorIn().

◆ getBoneRightFootSubtalar()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightFootSubtalar ( )

Right foot subtalar bone name.

References new().

Referenced by getBehaviorIn().

◆ getBoneRightFootTransverse()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightFootTransverse ( )

Right foot transverse bone name.

References new().

Referenced by getBehaviorIn().

◆ getBoneRightHandWrist()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightHandWrist ( )

◆ getBoneRightHandWristTwist()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightHandWristTwist ( )

Right hand wrist twist bone name.

Referenced by getBehaviorIn().

◆ getBoneRightLowerLeg()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightLowerLeg ( )

Right lower leg bone name.

Referenced by getBehaviorIn().

◆ getBoneRightScapula()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightScapula ( )

Right scapula bone name.

Referenced by getBehaviorIn().

◆ getBoneRightShoulder()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightShoulder ( )

Right shoulder bone name.

References new().

Referenced by getBehaviorIn().

◆ getBoneRightUpperLeg()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneRightUpperLeg ( )

Right upper leg bone name.

Referenced by getBehaviorIn().

◆ getBoneSpineLower()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneSpineLower ( )

Spine lower bone name.

References pActorAnimated.

Referenced by getBehaviorIn().

◆ getBoneSpineMiddle()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneSpineMiddle ( )

Spine middle bone name.

Referenced by getBehaviorIn().

◆ getBoneSpineUpper()

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.getBoneSpineUpper ( )

Spine upper bone name.

References new().

Referenced by getBehaviorIn().

◆ getBTSMs()

ECComposeBTSM Dragengine.Scenery.ECBehaviorVRBody.Instance.getBTSMs ( )

Compose behavior trees and state machines.

References new(), and pBTSMs.

Referenced by getActorAnimated(), and getBehaviorIn().

◆ getEnabled()

ECPBoolean Dragengine.Scenery.ECBehaviorVRBody.Instance.getEnabled ( )

◆ getEnableLowerBody()

ECPBoolean Dragengine.Scenery.ECBehaviorVRBody.Instance.getEnableLowerBody ( )

Enable lower body bones if supported by input device.

References new().

Referenced by getBehaviorIn().

◆ getOnlyRotation()

ECPBoolean Dragengine.Scenery.ECBehaviorVRBody.Instance.getOnlyRotation ( )

Apply only rotation instead of position and rotation.

References new().

Referenced by getBehaviorIn().

◆ getPrefix()

String Dragengine.Scenery.ECBehaviorVRBody.Instance.getPrefix ( )

Prefix.

Referenced by getActorAnimated(), and getBehaviorIn().

◆ getVRPlayspace()

ECBehaviorVRPlayspace Dragengine.Scenery.ECBehaviorVRBody.Instance.getVRPlayspace ( )

◆ new() [1/4]

◆ new() [2/4]

Instance Dragengine.Scenery.ECBehaviorVRBody.Instance.new ( BehaviorElementClass eclass,
ECBehaviorVRPlayspace vrPlayspace,
ECBehaviorActorAnimated actorAnimated,
BindingManager bindingManager )

Create behavior element class.

◆ new() [3/4]

Instance Dragengine.Scenery.ECBehaviorVRBody.Instance.new ( BehaviorElementClass eclass,
ECBehaviorVRPlayspace vrPlayspace,
ECBehaviorActorAnimated actorAnimated,
BindingManager bindingManager,
String subID )

Create behavior element class.

◆ new() [4/4]

Instance Dragengine.Scenery.ECBehaviorVRBody.Instance.new ( BehaviorElementClass eclass,
ECBehaviorVRPlayspace vrPlayspace,
ECBehaviorActorAnimated actorAnimated,
BindingManager bindingManager,
String subID,
String prefix )

Create behavior element class.

Member Data Documentation

◆ pActorAnimated

ECBehaviorActorAnimated Dragengine.Scenery.ECBehaviorVRBody.Instance.pActorAnimated

Referenced by getBehaviorIn(), and getBoneSpineLower().

◆ pBindingManager

BindingManager Dragengine.Scenery.ECBehaviorVRBody.Instance.pBindingManager

Referenced by getBehaviorIn().

◆ pBoneChest

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.pBoneChest

Referenced by getBehaviorIn().

◆ pBoneLeftArmUpper

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.pBoneLeftArmUpper

Referenced by getBehaviorIn().

◆ pBoneLeftFootAnkle

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.pBoneLeftFootAnkle

Referenced by getBehaviorIn().

◆ pBoneLeftShoulder

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.pBoneLeftShoulder

Referenced by getBehaviorIn().

◆ pBoneLeftUpperLeg

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.pBoneLeftUpperLeg

Referenced by getBehaviorIn().

◆ pBoneOrigin

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.pBoneOrigin

◆ pBoneRightArmUpper

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.pBoneRightArmUpper

Referenced by getBehaviorIn().

◆ pBoneRightFootAnkle

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.pBoneRightFootAnkle

Referenced by getBehaviorIn().

◆ pBoneRightShoulder

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.pBoneRightShoulder

Referenced by getBehaviorIn().

◆ pBoneRightUpperLeg

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.pBoneRightUpperLeg

Referenced by getBehaviorIn().

◆ pBoneSpineLower

ECPString Dragengine.Scenery.ECBehaviorVRBody.Instance.pBoneSpineLower

Referenced by getBehaviorIn().

◆ pBTSMs

ECComposeBTSM Dragengine.Scenery.ECBehaviorVRBody.Instance.pBTSMs

Referenced by getBehaviorIn(), and getBTSMs().

◆ pListenerFactories

Array Dragengine.Scenery.ECBehaviorVRBody.Instance.pListenerFactories

Referenced by getBehaviorIn().

◆ pOnlyRotation

ECPBoolean Dragengine.Scenery.ECBehaviorVRBody.Instance.pOnlyRotation

Referenced by getBehaviorIn().

◆ pPrefix

String Dragengine.Scenery.ECBehaviorVRBody.Instance.pPrefix

Referenced by getBehaviorIn().

◆ pVRPlayspace

ECBehaviorVRPlayspace Dragengine.Scenery.ECBehaviorVRBody.Instance.pVRPlayspace

Referenced by getBehaviorIn().


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