MobileVRInterface

package
v0.0.0-...-7325ca5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package MobileVRInterface provides methods for working with MobileVRInterface object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsMobileVRInterface() Instance
}

type Instance

type Instance [1]gdclass.MobileVRInterface

This is a generic mobile VR implementation where you need to provide details about the phone and HMD used. It does not rely on any existing framework. This is the most basic interface we have. For the best effect, you need a mobile phone with a gyroscope and accelerometer. Note that even though there is no positional tracking, the camera will assume the headset is at a height of 1.85 meters. You can change this by setting [member eye_height]. You can initialize this interface as follows: [codeblock] var interface = XRServer.find_interface("Native mobile") if interface and interface.initialize():

get_viewport().use_xr = true

[/codeblock]

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsMobileVRInterface

func (self Instance) AsMobileVRInterface() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsXRInterface

func (self Instance) AsXRInterface() XRInterface.Instance

func (Instance) DisplayToLens

func (self Instance) DisplayToLens() Float.X

func (Instance) DisplayWidth

func (self Instance) DisplayWidth() Float.X

func (Instance) EyeHeight

func (self Instance) EyeHeight() Float.X

func (Instance) Iod

func (self Instance) Iod() Float.X

func (Instance) K1

func (self Instance) K1() Float.X

func (Instance) K2

func (self Instance) K2() Float.X

func (Instance) OffsetRect

func (self Instance) OffsetRect() Rect2.PositionSize

func (Instance) Oversample

func (self Instance) Oversample() Float.X

func (Instance) SetDisplayToLens

func (self Instance) SetDisplayToLens(value Float.X)

func (Instance) SetDisplayWidth

func (self Instance) SetDisplayWidth(value Float.X)

func (Instance) SetEyeHeight

func (self Instance) SetEyeHeight(value Float.X)

func (Instance) SetIod

func (self Instance) SetIod(value Float.X)

func (Instance) SetK1

func (self Instance) SetK1(value Float.X)

func (Instance) SetK2

func (self Instance) SetK2(value Float.X)

func (Instance) SetOffsetRect

func (self Instance) SetOffsetRect(value Rect2.PositionSize)

func (Instance) SetOversample

func (self Instance) SetOversample(value Float.X)

func (Instance) SetVrsMinRadius

func (self Instance) SetVrsMinRadius(value Float.X)

func (Instance) SetVrsStrength

func (self Instance) SetVrsStrength(value Float.X)

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

func (Instance) VrsMinRadius

func (self Instance) VrsMinRadius() Float.X

func (Instance) VrsStrength

func (self Instance) VrsStrength() Float.X

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL