User Tools

Site Tools


dragengine:modules:dragonscript:behavior_vrplayspace

ECBehaviorVRPlayspace

Behavior in action

Behavior element behavior adding VR Playspace support to actor. This behavior defines the VR Playspace. This is used as reference coordinate system. The playspace position and orientation matches the owner element position and orientation.

Instance Counts

This behavior can be used only once on an element.

Element Class Properties

This behavior has no element class properties.

Required Behaviors

This behavior does not require other behaviors to be present.

Optional Behaviors

This behavior does not support optional behaviors.

Persistency

This behavior does not use persistency.

API Documentation

ECBehaviorVRPlayspace.

Since DragonScript Module Version 1.6

Use Cases

  • Basic support for VR.

Element Class Example

The following example creates an element class with VR support:

class MyElement extends BehaviorElementClass
  public func new()
    var ECBehaviorVRPlayspace vrPlayspace = ECBehaviorVRPlayspace.new(this)
    
    // Other behaviors typically need vrPlayspace as required behavior
  end
end

Live Examples

You could leave a comment if you were logged in.
dragengine/modules/dragonscript/behavior_vrplayspace.txt · Last modified: 2024/03/14 16:57 by dragonlord