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

Basic VR actor class. More...

Inheritance diagram for Dragengine.Scenery.BaseVRActor:
Dragengine.Scenery.BaseActor Dragengine.Scenery.BehaviorElement Dragengine.Scenery.Element

Public Member Functions

ECBehaviorVRBody.Instance getVRBody ()
 VR Body.
ECBehaviorVRHMD.Instance getVRHMD ()
 VR HMD.
ECBehaviorVRHand.Instance getVRLeftHand ()
 VR Left Hand Controller.
ECBehaviorVRHandAction.Instance getVRLeftHandAction ()
 VR Left Hand Action.
ECBehaviorActorAnimated.Instance getVRLeftHandAnimated ()
 VR Left Hand Animated.
ECBehaviorAttachSlot.Instance getVRLeftHandAttachSlot ()
 VR Left Hand Controller Attach Slot.
ECBehaviorGrabber.Instance getVRLeftHandGrabber ()
 VR Left Hand Controller Grabber.
ECBehaviorVRHandLaserPointer.Instance getVRLeftHandLaserPointer ()
 VR Left Hand Controller Laser Pointer.
ECBehaviorVRHandLocomotion.Instance getVRLeftHandLocomotion ()
 VR Left Hand Locomotion.
ECBehaviorVRHandPointAt.Instance getVRLeftHandPointAt ()
 VR Left Hand Controller Point-At.
ECBehaviorVRHandPose.Instance getVRLeftHandPose ()
 VR Left Hand Pose.
ECBehaviorVRPlayspace.Instance getVRPlayspace ()
 VR Playspace behavior instance.
ECBehaviorVRHand.Instance getVRRightHand ()
 VR Right Hand Controller.
ECBehaviorVRHandAction.Instance getVRRightHandAction ()
 VR Right Hand Action.
ECBehaviorActorAnimated.Instance getVRRightHandAnimated ()
 VR Right Hand Animated.
ECBehaviorAttachSlot.Instance getVRRightHandAttachSlot ()
 VR Right Hand Controller Attach Slot.
ECBehaviorGrabber.Instance getVRRightHandGrabber ()
 VR Right Hand Controller Grabber.
ECBehaviorVRHandLaserPointer.Instance getVRRightHandLaserPointer ()
 VR Right Hand Controller Laser Pointer.
ECBehaviorVRHandLocomotion.Instance getVRRightHandLocomotion ()
 VR Right Hand Locomotion.
ECBehaviorVRHandPointAt.Instance getVRRightHandPointAt ()
 VR Right Hand Controller Point-At.
ECBehaviorVRHandPose.Instance getVRRightHandPose ()
 VR Right Hand Pose.
BaseVRActor new (BaseVRActorClass eclass)
 Create element.
void visit (ElementVisitor visitor)
 Visit element.
Public Member Functions inherited from Dragengine.Scenery.BaseActor
void addToGameWorld ()
 Add to game world.
ECBehaviorActorAnimated.Instance getActorAnimated ()
 Actor animated behavior instance.
ECBehaviorActorMover.Instance getActorMover ()
 Actor mover instance.
ECBehaviorActorAIAction.Instance getAIAction ()
 AI-Action instance.
ECBehaviorAlignActor.Instance getAlignActor ()
 Align actor instance.
ECBehaviorAvoidCollision.Instance getAvoidCollision ()
 Avoid collision instance.
ECBehaviorAvoidedByActor.Instance getAvoidedByActor ()
 Avoided by actor instance.
ECBehaviorBehaviorTree.Instance getBehaviorTree ()
 Behavior tree.
ECBehaviorCollider.Instance getCollider ()
 Collider behavior instance.
ECBehaviorColliderAI.Instance getColliderAI ()
 Collider AI behavior instance.
ECBehaviorComponent.Instance getComponent ()
 Component behavio instance.
ECBehaviorConversationActor.Instance getConversationActor ()
 Conversation actor instance.
ECBehaviorFootSteps.Instance getFootSteps ()
 Foot steps instance.
ECBehaviorInteractionElement.Instance getInteractionElement ()
 Interact element.
ECBehaviorLocomotion.Instance getLocomotion ()
 Locomotion behavior instance.
ECBehaviorNavigator.Instance getNavigator ()
 Navigator instance.
ECBehaviorParameterTable.Instance getParameterTable ()
 Parameter table instance.
ECBehaviorPlayerControllable.Instance getPlayerControllable ()
 Player controllable instance.
ECBehaviorPlayerInputCrouch.Instance getPlayerInputCrouch ()
 Player input crouching behavior instance.
ECBehaviorPlayerInputLook.Instance getPlayerInputLook ()
 Player input looking around behavior instance.
ECBehaviorPlayerInputMove.Instance getPlayerInputMove ()
 Player input moving behavior instance.
ECBehaviorPlayerInputTurn.Instance getPlayerInputTurn ()
 Player input turning behavior instance.
ECBehaviorProjectToGround.Instance getProjectToGround ()
 Project to ground behavior instance.
ECBehaviorRideOn.Instance getRideOn ()
 Ride on instance.
ECBehaviorStateMachine.Instance getStateMachine ()
 State machine.
void init (StubElement stub)
 Initialize element from stub.
BaseActor new (BaseActorClass eclass)
 Create element.
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read element from file.
void teleportAdjustActor ()
 Adjust actor after teleporting.
void writeToFile (PersistencyEnvironment env, FileWriter writer)
Public Member Functions inherited from Dragengine.Scenery.BehaviorElement
void addAttachableBehavior (ECAttachableBehavior behavior)
 Add attached behavior.
Array collectAttachableBehaviors (Block ablock)
 Collect attached behaviors with block into Array.
Array collectInstances (Block ablock)
 Collect behavior instance with block into Array.
ECAttachableBehavior findAttachableBehavior (Block ablock)
 Find attached behavior with block.
ECBehaviorInstance findInstance (Block ablock)
 Find behavior instance with block.
void forEachAttachableBehavior (Block ablock)
 Visit attached s with block.
void forEachAttachableBehaviorReverse (Block ablock)
 Visit attached behaviors with block in reverse order.
ECAttachableBehavior getAttachableBehaviorAt (int index)
 Attached behavior at index.
int getAttachableBehaviorCount ()
 Count of attachaed behaviors.
bool getRequiresAttachToParent ()
 Attach to parent has not been processed yet.
bool getRequiresEnterFrame ()
 Sub-class requires enterFrame() to be called.
bool getRequiresThink ()
 Sub-class requires think() to be called.
float getTimeScale ()
 Time scale applied to elapsed time.
bool isChangingGameWorld ()
 Behavior element is in progress of beeing added to or removed from a GameWorld.
bool isReallyInGameWorld ()
 Element is in GameWorld and not in progress of beeing removed from it.
BehaviorElement new (BehaviorElementClass eclass)
 Create element.
void onSetPosition ()
 Position changed.
void registerPostInit (BehaviorPostInit behavior)
 Register behavior instance for post init.
void removeAttachableBehavior (ECAttachableBehavior behavior)
 Remove attached behavior.
void requiresThinkChanged ()
 Requires thinking changed.
void setRequiresAttachToParent (bool requiresAttachToParent)
 Set if attach to parent has not been processed yet.
void setTimeScale (float scale)
 Set time scale applied to elapsed time.
Public Member Functions inherited from Dragengine.Scenery.Element
Dictionary debugInformation ()
 Debug information as Dictionary.
void dispose ()
 Dispose of element.
void enterFrame ()
 Frame update started.
ElementClass getClass ()
DMatrix getElementMatrix ()
 Matrix to transform from element space into world space.
GameWorld getGameWorld ()
UniqueID getID ()
DMatrix getInverseElementMatrix ()
 Matrix to transform from world space into element space.
bool getIsScaled ()
 Is scaled.
Quaternion getOrientation ()
 Orientation.
Element getParent ()
DVector getPosition ()
 Position.
Vector getScaling ()
 Scaling.
StubElement getStub ()
 Element stub used to create the element.
bool getTouchable ()
bool getVisible ()
bool isChildOf (Element parent)
bool isDisposed ()
 Element has been disposed of.
bool isMyselfOrChildOf (Element parent)
bool isNotDisposed ()
 Element has not been disposed of.
void log (String message)
 Log using BaseGameApp Console if present.
Element new (ElementClass elementClass)
void onSetGameWorld ()
void onSetGeometry ()
 Position, orientation or scaling changed.
void onSetOrientation ()
 Orientation changed.
void onSetParent ()
void onSetScaling ()
 Scaling changed.
void onSetTouchable ()
void onSetVisible ()
void postThink (float elapsed)
void removeFromGameWorld ()
void removeFromGameWorldIfPresent ()
 Remove element from game world if present.
void safeDispose ()
 Remove element from game world if present and dispose of element.
void setGameWorld (GameWorld gameWorld)
void setGeometry (DVector position, Quaternion orientation)
 Set position and orientation.
void setGeometry (DVector position, Quaternion orientation, Vector scaling)
 Set position, orientation and scaling of element.
void setID (UniqueID id)
void setOrientation (Quaternion orientation)
 Set orientation.
void setParent (Element parent)
void setPosition (DVector position)
 Set position.
void setScaling (Vector scaling)
 Set scaling.
void setStub (StubElement stub)
 Set element stub used to create the element.
void setTouchable (bool touchable)
void setVisible (bool visible)
void think (float elapsed)
String toString ()
void updateStubGeometryFromElement ()
 Update stub position, rotation and scaling from element.
void writeToFileWithStub (PersistencyEnvironment env, FileWriter writer)
 Write element to file writer with stub.

Public Attributes

ECBehaviorVRBody.Instance pVRBody
ECBehaviorVRHMD.Instance pVRHMD
ECBehaviorVRHand.Instance pVRLeftHand
ECBehaviorVRHandAction.Instance pVRLeftHandAction
ECBehaviorActorAnimated.Instance pVRLeftHandAnimated
ECBehaviorAttachSlot.Instance pVRLeftHandAttachSlot
ECBehaviorGrabber.Instance pVRLeftHandGrabber
ECBehaviorVRHandLaserPointer.Instance pVRLeftHandLaserPointer
ECBehaviorVRHandLocomotion.Instance pVRLeftHandLocomotion
ECBehaviorVRHandPointAt.Instance pVRLeftHandPointAt
ECBehaviorVRHandPose.Instance pVRLeftHandPose
ECBehaviorVRPlayspace.Instance pVRPlayspace
ECBehaviorVRHand.Instance pVRRightHand
ECBehaviorVRHandAction.Instance pVRRightHandAction
ECBehaviorActorAnimated.Instance pVRRightHandAnimated
ECBehaviorAttachSlot.Instance pVRRightHandAttachSlot
ECBehaviorGrabber.Instance pVRRightHandGrabber
ECBehaviorVRHandLaserPointer.Instance pVRRightHandLaserPointer
ECBehaviorVRHandLocomotion.Instance pVRRightHandLocomotion
ECBehaviorVRHandPointAt.Instance pVRRightHandPointAt
ECBehaviorVRHandPose.Instance pVRRightHandPose
Public Attributes inherited from Dragengine.Scenery.BaseActor
ECBehaviorActorAnimated.Instance pActorAnimated
ECBehaviorActorMover.Instance pActorMover
ECBehaviorActorAIAction.Instance pAIAction
ECBehaviorAlignActor.Instance pAlignActor
ECBehaviorAvoidCollision.Instance pAvoidCollision
ECBehaviorAvoidedByActor.Instance pAvoidedByActor
ECBehaviorBehaviorTree.Instance pBehaviorTree
ECBehaviorCollider.Instance pCollider
ECBehaviorColliderAI.Instance pColliderAI
ECBehaviorComponent.Instance pComponent
ECBehaviorConversationActor.Instance pConversationActor
ECBehaviorFootSteps.Instance pFootSteps
ECBehaviorInteractionElement.Instance pInteractionElement
ECBehaviorLocomotion.Instance pLocomotion
ECBehaviorNavigator.Instance pNavigator
ECBehaviorParameterTable.Instance pParameterTable
ECBehaviorPlayerControllable.Instance pPlayerControllable
ECBehaviorPlayerInputCrouch.Instance pPlayerInputCrouch
ECBehaviorPlayerInputLook.Instance pPlayerInputLook
ECBehaviorPlayerInputMove.Instance pPlayerInputMove
ECBehaviorPlayerInputTurn.Instance pPlayerInputTurn
ECBehaviorProjectToGround.Instance pProjectToGround
ECBehaviorRideOn.Instance pRideOn
ECBehaviorStateMachine.Instance pStateMachine
Public Attributes inherited from Dragengine.Scenery.BehaviorElement
Array pAttachableBehaviors
Array pInstances
bool pIsChangingGameWorld
bool pRequiresEnterFrame
float pTimeScale
Public Attributes inherited from Dragengine.Scenery.Element
ElementClass pClass
GameWorld pGameWorld
UniqueID pID
bool pIsScaled
DMatrix pMatrix
DMatrix pMatrixInverse
Quaternion pOrientation
Element pParent
DVector pPosition
Vector pScaling
StubElement pStub
bool pTouchable
bool pVisible

Additional Inherited Members

Static Public Member Functions inherited from Dragengine.Scenery.Element
static Element readElementFromFileWithStub (PersistencyEnvironment env, FileReader reader, ElementClassList ElementClassList)
 Load element from file reader with stub supporting null element.
static void writeElementToFileWithStub (PersistencyEnvironment env, FileWriter writer, Element element)
 Write element to file writer with stub supporting null element.
Protected Member Functions inherited from Dragengine.Scenery.BaseActor
void initAvoidCollisionShape (StubElement stub)
 Initialize avoid collision collider shape.
void initColliderShape (StubElement stub)
 Initialize collider AI shape.
void initNavigator (StubElement stub)
 Initialize navigator.
void initProjectToGroundShapes (StubElement stub)
 Initialize project to ground shapes.
void spawnAdjustActor ()
 Adjust actor after spawning.
Protected Member Functions inherited from Dragengine.Scenery.BehaviorElement
void setRequiresEnterFrame (bool requiresEnterFrame)
 Set if sub-class requires enterFrame() to be called.
void setRequiresThink (bool requiresThink)
 Set if sub-class requires think() to be called.

Detailed Description

Basic VR actor class.

Version
1.6

Extends BaseActor with VR behaviors.

Member Function Documentation

◆ getVRBody()

ECBehaviorVRBody.Instance Dragengine.Scenery.BaseVRActor.getVRBody ( )

◆ getVRHMD()

◆ getVRLeftHand()

ECBehaviorVRHand.Instance Dragengine.Scenery.BaseVRActor.getVRLeftHand ( )

◆ getVRLeftHandAction()

ECBehaviorVRHandAction.Instance Dragengine.Scenery.BaseVRActor.getVRLeftHandAction ( )

VR Left Hand Action.

Version
1.10

Referenced by getVRLeftHand(), and visit().

◆ getVRLeftHandAnimated()

ECBehaviorActorAnimated.Instance Dragengine.Scenery.BaseVRActor.getVRLeftHandAnimated ( )

VR Left Hand Animated.

Version
1.10

References getVRRightHandGrabber(), and pVRRightHandGrabber.

Referenced by getVRRightHand(), and visit().

◆ getVRLeftHandAttachSlot()

ECBehaviorAttachSlot.Instance Dragengine.Scenery.BaseVRActor.getVRLeftHandAttachSlot ( )

VR Left Hand Controller Attach Slot.

Version
1.9

References getVRRightHand(), and pVRRightHand.

Referenced by getVRHMD(), and getVRRightHandAnimated().

◆ getVRLeftHandGrabber()

ECBehaviorGrabber.Instance Dragengine.Scenery.BaseVRActor.getVRLeftHandGrabber ( )

VR Left Hand Controller Grabber.

Version
1.9

References getVRLeftHandPointAt(), pVRLeftHandPointAt, and pVRRightHandPointAt.

Referenced by getVRHMD(), and getVRRightHandAction().

◆ getVRLeftHandLaserPointer()

ECBehaviorVRHandLaserPointer.Instance Dragengine.Scenery.BaseVRActor.getVRLeftHandLaserPointer ( )

VR Left Hand Controller Laser Pointer.

References getVRHMD(), and pVRHMD.

Referenced by getVRHMD(), and getVRLeftHandPose().

◆ getVRLeftHandLocomotion()

ECBehaviorVRHandLocomotion.Instance Dragengine.Scenery.BaseVRActor.getVRLeftHandLocomotion ( )

VR Left Hand Locomotion.

Version
1.28

Referenced by getVRRightHand(), and visit().

◆ getVRLeftHandPointAt()

ECBehaviorVRHandPointAt.Instance Dragengine.Scenery.BaseVRActor.getVRLeftHandPointAt ( )

VR Left Hand Controller Point-At.

References getVRPlayspace(), and pVRPlayspace.

Referenced by getVRLeftHandGrabber(), and getVRPlayspace().

◆ getVRLeftHandPose()

ECBehaviorVRHandPose.Instance Dragengine.Scenery.BaseVRActor.getVRLeftHandPose ( )

VR Left Hand Pose.

Version
1.10

References getVRLeftHandLaserPointer(), and pVRLeftHandLaserPointer.

Referenced by getVRBody(), and visit().

◆ getVRPlayspace()

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

◆ getVRRightHand()

ECBehaviorVRHand.Instance Dragengine.Scenery.BaseVRActor.getVRRightHand ( )

◆ getVRRightHandAction()

ECBehaviorVRHandAction.Instance Dragengine.Scenery.BaseVRActor.getVRRightHandAction ( )

VR Right Hand Action.

Version
1.10

References getVRLeftHandGrabber(), and pVRLeftHandGrabber.

Referenced by getVRLeftHand(), and visit().

◆ getVRRightHandAnimated()

ECBehaviorActorAnimated.Instance Dragengine.Scenery.BaseVRActor.getVRRightHandAnimated ( )

VR Right Hand Animated.

Version
1.10

References getVRLeftHandAttachSlot(), and pVRLeftHandAttachSlot.

Referenced by getVRRightHand(), and visit().

◆ getVRRightHandAttachSlot()

ECBehaviorAttachSlot.Instance Dragengine.Scenery.BaseVRActor.getVRRightHandAttachSlot ( )

VR Right Hand Controller Attach Slot.

Version
1.9

References getVRBody(), and pVRBody.

Referenced by getVRHMD(), and getVRRightHandLocomotion().

◆ getVRRightHandGrabber()

ECBehaviorGrabber.Instance Dragengine.Scenery.BaseVRActor.getVRRightHandGrabber ( )

VR Right Hand Controller Grabber.

Version
1.9

References getVRLeftHand(), getVRRightHandPointAt(), and pVRLeftHand.

Referenced by getVRHMD(), and getVRLeftHandAnimated().

◆ getVRRightHandLaserPointer()

ECBehaviorVRHandLaserPointer.Instance Dragengine.Scenery.BaseVRActor.getVRRightHandLaserPointer ( )

VR Right Hand Controller Laser Pointer.

Referenced by getVRHMD(), and getVRRightHandPose().

◆ getVRRightHandLocomotion()

ECBehaviorVRHandLocomotion.Instance Dragengine.Scenery.BaseVRActor.getVRRightHandLocomotion ( )

VR Right Hand Locomotion.

Version
1.28

References getVRRightHandAttachSlot(), and pVRRightHandAttachSlot.

Referenced by getVRBody(), and visit().

◆ getVRRightHandPointAt()

ECBehaviorVRHandPointAt.Instance Dragengine.Scenery.BaseVRActor.getVRRightHandPointAt ( )

VR Right Hand Controller Point-At.

Referenced by getVRPlayspace(), and getVRRightHandGrabber().

◆ getVRRightHandPose()

ECBehaviorVRHandPose.Instance Dragengine.Scenery.BaseVRActor.getVRRightHandPose ( )

VR Right Hand Pose.

Version
1.10

References getVRRightHandLaserPointer(), and pVRRightHandLaserPointer.

Referenced by getVRBody(), and visit().

◆ new()

BaseVRActor Dragengine.Scenery.BaseVRActor.new ( BaseVRActorClass eclass)

◆ visit()

Member Data Documentation

◆ pVRBody

ECBehaviorVRBody.Instance Dragengine.Scenery.BaseVRActor.pVRBody

Referenced by getVRRightHandAttachSlot(), and new().

◆ pVRHMD

ECBehaviorVRHMD.Instance Dragengine.Scenery.BaseVRActor.pVRHMD

Referenced by getVRLeftHandLaserPointer(), and new().

◆ pVRLeftHand

ECBehaviorVRHand.Instance Dragengine.Scenery.BaseVRActor.pVRLeftHand

◆ pVRLeftHandAction

ECBehaviorVRHandAction.Instance Dragengine.Scenery.BaseVRActor.pVRLeftHandAction

Referenced by getVRLeftHand(), and visit().

◆ pVRLeftHandAnimated

ECBehaviorActorAnimated.Instance Dragengine.Scenery.BaseVRActor.pVRLeftHandAnimated

Referenced by getVRRightHand(), and visit().

◆ pVRLeftHandAttachSlot

ECBehaviorAttachSlot.Instance Dragengine.Scenery.BaseVRActor.pVRLeftHandAttachSlot

Referenced by getVRHMD(), and getVRRightHandAnimated().

◆ pVRLeftHandGrabber

ECBehaviorGrabber.Instance Dragengine.Scenery.BaseVRActor.pVRLeftHandGrabber

Referenced by getVRHMD(), and getVRRightHandAction().

◆ pVRLeftHandLaserPointer

ECBehaviorVRHandLaserPointer.Instance Dragengine.Scenery.BaseVRActor.pVRLeftHandLaserPointer

Referenced by getVRHMD(), and getVRLeftHandPose().

◆ pVRLeftHandLocomotion

ECBehaviorVRHandLocomotion.Instance Dragengine.Scenery.BaseVRActor.pVRLeftHandLocomotion

Referenced by getVRRightHand(), and visit().

◆ pVRLeftHandPointAt

ECBehaviorVRHandPointAt.Instance Dragengine.Scenery.BaseVRActor.pVRLeftHandPointAt

◆ pVRLeftHandPose

ECBehaviorVRHandPose.Instance Dragengine.Scenery.BaseVRActor.pVRLeftHandPose

Referenced by getVRBody(), and visit().

◆ pVRPlayspace

ECBehaviorVRPlayspace.Instance Dragengine.Scenery.BaseVRActor.pVRPlayspace

Referenced by getVRLeftHandPointAt(), and new().

◆ pVRRightHand

ECBehaviorVRHand.Instance Dragengine.Scenery.BaseVRActor.pVRRightHand

Referenced by getVRLeftHandAttachSlot(), and new().

◆ pVRRightHandAction

ECBehaviorVRHandAction.Instance Dragengine.Scenery.BaseVRActor.pVRRightHandAction

Referenced by getVRLeftHand(), and visit().

◆ pVRRightHandAnimated

ECBehaviorActorAnimated.Instance Dragengine.Scenery.BaseVRActor.pVRRightHandAnimated

Referenced by getVRRightHand(), and visit().

◆ pVRRightHandAttachSlot

ECBehaviorAttachSlot.Instance Dragengine.Scenery.BaseVRActor.pVRRightHandAttachSlot

◆ pVRRightHandGrabber

ECBehaviorGrabber.Instance Dragengine.Scenery.BaseVRActor.pVRRightHandGrabber

Referenced by getVRHMD(), and getVRLeftHandAnimated().

◆ pVRRightHandLaserPointer

ECBehaviorVRHandLaserPointer.Instance Dragengine.Scenery.BaseVRActor.pVRRightHandLaserPointer

Referenced by getVRHMD(), and getVRRightHandPose().

◆ pVRRightHandLocomotion

ECBehaviorVRHandLocomotion.Instance Dragengine.Scenery.BaseVRActor.pVRRightHandLocomotion

Referenced by getVRBody(), and visit().

◆ pVRRightHandPointAt

ECBehaviorVRHandPointAt.Instance Dragengine.Scenery.BaseVRActor.pVRRightHandPointAt

◆ pVRRightHandPose

ECBehaviorVRHandPose.Instance Dragengine.Scenery.BaseVRActor.pVRRightHandPose

Referenced by getVRBody(), and visit().


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