|
Drag[en]gine Script Module DragonScript 1.32.1
|
Behavior element behavior adding VR Body support to actor. More...
Classes | |
| class | BlockListenerFactory |
| Factory creating listeners using block. More... | |
| class | DefaultListener |
| Default implementation of behavior instance listener. More... | |
| class | Factory |
| Behavior factory. More... | |
| class | Instance |
| Behavior instance. More... | |
| interface | Listener |
| Listener for behavior instance events. More... | |
| interface | ListenerFactory |
| Factory creating listeners. More... | |
Additional Inherited Members | |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
| void | assignInstanceIndex (int instanceIndex) |
| Assign instance index. | |
| void | dispose () |
| Dispose of behavior. | |
| 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. | |
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 Body support to actor.
This behavior tracks a body tracker providing body bone pose data. Body trackers produce bone pose data for the upper or full body of the user. The bone configuration can be retrieved using #getBoneConfiguration(). The body rig containing the skeleton as used by the body tracking device can be retrieved using #getBodyRig(). The body rig can change if the input device recalibrates the user. If the body rig changed a Listener::bodyRigChanged() notification is sent.
Requires ECBehaviorActorAnimated to show the body and optionally animated it. This behavior maintains an AnimationInstance itself and applies the bone position after the actor animated animation. This allows other behaviors to add more animations on top of the tracked body pose.
This behavior can be added only once to an element. The prefix of the element class properties is "vrBody.".
This behavior does not require persistable element class (setPersistable).