|
Drag[en]gine Script Module DragonScript 1.35
|
Behavior element behavior adding VR Hand Controller Laser Pointer support to actor. More...
Classes | |
| class | Factory |
| Behavior factory. More... | |
| class | Instance |
| Behavior instance. More... | |
Public Member Functions | |
| void | dispose () |
| Dispose of behavior. | |
| ECComposeBTSM | getBTSMs () |
| Compose behavior trees and state machines. | |
| ECPColor | getColor () |
| Color of beam. | |
| ECPString | getControllerBlue () |
| Controller blue name. | |
| ECPString | getControllerGreen () |
| Controller green name. | |
| ECPString | getControllerIntensity () |
| Controller intensity name. | |
| ECPString | getControllerLength () |
| Controller length name. | |
| ECPString | getControllerRed () |
| Controller red name. | |
| ECPFloat | getIntensity () |
| Intensity of beam. | |
| ECPFloat | getLength () |
| Length of beam in meters. | |
| ECBehaviorParticleEmitter | getParticleEmitter () |
| Particle emitter behavior. | |
| String | getPrefix () |
| Prefix. | |
| ECBehaviorVRHandPointAt | getVRHandPointAt () |
| VR Hand Point At behavior. | |
| Instance | instance (BehaviorElement element) |
| Get instance in element from owner element class. | |
| ECBehaviorVRHandLaserPointer | new (BehaviorElementClass eclass, ECBehaviorVRHandPointAt vrHandPointAt) |
| Create behavior element class. | |
| ECBehaviorVRHandLaserPointer | new (BehaviorElementClass eclass, ECBehaviorVRHandPointAt vrHandPointAt, String id) |
| Create behavior element class. | |
| ECBehaviorVRHandLaserPointer | new (BehaviorElementClass eclass, ECBehaviorVRHandPointAt vrHandPointAt, String id, String subID) |
| Create behavior element class. | |
| ECBehaviorVRHandLaserPointer | new (BehaviorElementClass eclass, ECBehaviorVRHandPointAt vrHandPointAt, String id, String subID, String prefix) |
| Create behavior element class. | |
| Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
| void | assignInstanceIndex (int instanceIndex) |
| Assign instance index. | |
| String | getBehaviorID () |
| Unique identifier of behavior. | |
| String | getID () |
| Identifier. | |
| int | getInstanceIndex () |
| Instance index. | |
| void | loadSupportedData (String identifier, PersistencyEnvironment env, FileReader reader, ECBehaviorInstance instance) |
| Load instance data of another behavior. | |
| bool | supportsBehaviorID (String identifier) |
| Behavior supports loading instance data of another behavior. | |
| Public Member Functions inherited from Dragengine.Scenery.ECBehavior | |
| ECBehaviorInstance | createInstance (BehaviorElement element) |
| Create Behavior instance. | |
Static Public Member Functions | |
| static ECBehaviorVRHandLaserPointer | getBehaviorIn (BehaviorElementClass eclass) |
| Get behavior in element class or null if absent. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
| DefaultECBehavior | new (BehaviorElementClass eclass) |
| Create default composeable behavior with empty identifier. | |
| DefaultECBehavior | new (BehaviorElementClass eclass, String id) |
| Create default composeable behavior. | |
| void | setBehaviorID (String identifier) |
| Set behavior identifier. | |
| void | useClassNameAsBehaviorID () |
| Set behavior identifier to "<class-name>:<identifier>". | |
| void | useFullyQualifiedClassNameAsBehaviorID () |
| Set behavior identifier to "<fully-qualified-class-name>:<identifier>". | |
Behavior element behavior adding VR Hand Controller Laser Pointer support to actor.
VR Hand Controllers often use a laser pointer type interaction.
This behavior adds a particle emitter representing the laser pointer. The behavior attaches itself to a ECBehaviorVRHandPointAt. The enable casting of the particle emitter is linked to the enabled state of ECBehaviorVRHandPointAt.
Named controllers can be used to set typically laserpointer parameters at runtime if the named controllers exist. The following named controllers are supported:
Additional named controllers can be added if required. The default particle emitter used is "/shareddata/particles/laserpointer/laserpointer.depemit". This particle emitter defines the controller ranges like this:
The default particle emitter is set to use custom collision response. This behavior implements the response to make the beam stop at the first hit obstacle. The collision filter from ECBehaviorVRHandPointAt is copied to the particle emitter to ensure the results are comparable.
The particle emitter is aligned with the test direction.
This behavior does not require persistable element class (setPersistable).
| void Dragengine.Scenery.ECBehaviorVRHandLaserPointer.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
References dispose(), pParticleEmitter, and pVRHandPointAt.
Referenced by dispose(), and getBehaviorIn().
|
static |
Get behavior in element class or null if absent.
Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorVRHandLaserPointer.
References Dragengine.Scenery.ECBehavior.createInstance(), dispose(), getBehaviorIn(), getBTSMs(), getColor(), getControllerBlue(), getControllerGreen(), getControllerIntensity(), getControllerLength(), getControllerRed(), getIntensity(), getLength(), getParticleEmitter(), getPrefix(), getVRHandPointAt(), instance(), new(), pBTSMs, pColor, pControllerBlue, pControllerGreen, pControllerIntensity, pControllerLength, pControllerRed, pIntensity, pLength, pParticleEmitter, pPrefix, and pVRHandPointAt.
Referenced by getBehaviorIn().
| ECComposeBTSM Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getBTSMs | ( | ) |
Compose behavior trees and state machines.
References pVRHandPointAt.
Referenced by getBehaviorIn(), and instance().
| ECPColor Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getColor | ( | ) |
| ECPString Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getControllerBlue | ( | ) |
| ECPString Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getControllerGreen | ( | ) |
| ECPString Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getControllerIntensity | ( | ) |
Controller intensity name.
References pControllerIntensity, pControllerLength, and pControllerRed.
Referenced by getBehaviorIn().
| ECPString Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getControllerLength | ( | ) |
| ECPString Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getControllerRed | ( | ) |
Controller red name.
References pControllerBlue, and pControllerGreen.
Referenced by getBehaviorIn().
| ECPFloat Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getIntensity | ( | ) |
Intensity of beam.
References pControllerGreen.
Referenced by getBehaviorIn(), and getParticleEmitter().
| ECPFloat Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getLength | ( | ) |
Length of beam in meters.
References pControllerRed.
Referenced by getBehaviorIn(), and getParticleEmitter().
| ECBehaviorParticleEmitter Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getParticleEmitter | ( | ) |
Particle emitter behavior.
References getColor(), getIntensity(), getLength(), pColor, pIntensity, and pLength.
Referenced by getBehaviorIn(), new(), and new().
| String Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getPrefix | ( | ) |
| ECBehaviorVRHandPointAt Dragengine.Scenery.ECBehaviorVRHandLaserPointer.getVRHandPointAt | ( | ) |
VR Hand Point At behavior.
Referenced by getBehaviorIn(), and new().
| Instance Dragengine.Scenery.ECBehaviorVRHandLaserPointer.instance | ( | BehaviorElement | element | ) |
Get instance in element from owner element class.
References getBTSMs(), getPrefix(), pParticleEmitter, and pVRHandPointAt.
Referenced by getBehaviorIn(), new(), new(), and Dragengine.Scenery.ECBehaviorVRHandLaserPointer.Instance.setColor().
| ECBehaviorVRHandLaserPointer Dragengine.Scenery.ECBehaviorVRHandLaserPointer.new | ( | BehaviorElementClass | eclass, |
| ECBehaviorVRHandPointAt | vrHandPointAt ) |
Create behavior element class.
Referenced by getBehaviorIn().
| ECBehaviorVRHandLaserPointer Dragengine.Scenery.ECBehaviorVRHandLaserPointer.new | ( | BehaviorElementClass | eclass, |
| ECBehaviorVRHandPointAt | vrHandPointAt, | ||
| String | id ) |
Create behavior element class.
References getParticleEmitter().
| ECBehaviorVRHandLaserPointer Dragengine.Scenery.ECBehaviorVRHandLaserPointer.new | ( | BehaviorElementClass | eclass, |
| ECBehaviorVRHandPointAt | vrHandPointAt, | ||
| String | id, | ||
| String | subID ) |
Create behavior element class.
References getVRHandPointAt(), instance(), and pVRHandPointAt.
| ECBehaviorVRHandLaserPointer Dragengine.Scenery.ECBehaviorVRHandLaserPointer.new | ( | BehaviorElementClass | eclass, |
| ECBehaviorVRHandPointAt | vrHandPointAt, | ||
| String | id, | ||
| String | subID, | ||
| String | prefix ) |
Create behavior element class.
References getParticleEmitter(), instance(), and pParticleEmitter.
| ECComposeBTSM Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pBTSMs |
Referenced by getBehaviorIn().
| ECPColor Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pColor |
Referenced by getBehaviorIn(), and getParticleEmitter().
| ECPString Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pControllerBlue |
Referenced by getBehaviorIn(), getColor(), and getControllerRed().
| ECPString Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pControllerGreen |
Referenced by getBehaviorIn(), getControllerRed(), and getIntensity().
| ECPString Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pControllerIntensity |
Referenced by getBehaviorIn(), getControllerBlue(), and getControllerIntensity().
| ECPString Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pControllerLength |
Referenced by getBehaviorIn(), getControllerGreen(), and getControllerIntensity().
| ECPString Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pControllerRed |
Referenced by getBehaviorIn(), getControllerIntensity(), and getLength().
| ECPFloat Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pIntensity |
Referenced by getBehaviorIn(), and getParticleEmitter().
| ECPFloat Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pLength |
Referenced by getBehaviorIn(), and getParticleEmitter().
| ECBehaviorParticleEmitter Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pParticleEmitter |
Referenced by dispose(), getBehaviorIn(), getControllerLength(), instance(), and new().
| String Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pPrefix |
Referenced by getBehaviorIn().
| ECBehaviorVRHandPointAt Dragengine.Scenery.ECBehaviorVRHandLaserPointer.pVRHandPointAt |
Referenced by dispose(), getBehaviorIn(), getBTSMs(), instance(), and new().