XRNode3D

package
v0.0.0-...-029f470 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package XRNode3D provides methods for working with XRNode3D 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
	AsXRNode3D() Instance
}

type Instance

type Instance [1]gdclass.XRNode3D

This node can be bound to a specific pose of a [XRPositionalTracker] and will automatically have its [member Node3D.transform] updated by the [XRServer]. Nodes of this type must be added as children of the [XROrigin3D] node.

var Nil Instance

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

func New

func New() Instance

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsNode3D

func (self Instance) AsNode3D() Node3D.Instance

func (Instance) AsObject

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

func (Instance) AsXRNode3D

func (self Instance) AsXRNode3D() Instance

func (Instance) GetHasTrackingData

func (self Instance) GetHasTrackingData() bool

Returns [code]true[/code] if the [member tracker] has current tracking data for the [member pose] being tracked.

func (Instance) GetIsActive

func (self Instance) GetIsActive() bool

Returns [code]true[/code] if the [member tracker] has been registered and the [member pose] is being tracked.

func (Instance) GetPose

func (self Instance) GetPose() [1]gdclass.XRPose

Returns the [XRPose] containing the current state of the pose being tracked. This gives access to additional properties of this pose.

func (Instance) OnTrackingChanged

func (self Instance) OnTrackingChanged(cb func(tracking bool))

func (Instance) Pose

func (self Instance) Pose() string

func (Instance) SetPose

func (self Instance) SetPose(value string)

func (Instance) SetShowWhenTracked

func (self Instance) SetShowWhenTracked(value bool)

func (Instance) SetTracker

func (self Instance) SetTracker(value string)

func (Instance) ShowWhenTracked

func (self Instance) ShowWhenTracked() bool

func (Instance) Tracker

func (self Instance) Tracker() string

func (Instance) TriggerHapticPulse

func (self Instance) TriggerHapticPulse(action_name string, frequency Float.X, amplitude Float.X, duration_sec Float.X, delay_sec Float.X)

Triggers a haptic pulse on a device associated with this interface. [param action_name] is the name of the action for this pulse. [param frequency] is the frequency of the pulse, set to [code]0.0[/code] to have the system use a default frequency. [param amplitude] is the amplitude of the pulse between [code]0.0[/code] and [code]1.0[/code]. [param duration_sec] is the duration of the pulse in seconds. [param delay_sec] is a delay in seconds before the pulse is given.

func (*Instance) UnsafePointer

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

func (Instance) Virtual

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

Jump to

Keyboard shortcuts

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