Documentation ¶
Overview ¶
Package XRNode3D provides methods for working with XRNode3D object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsNode3D() Node3D.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsXRNode3D() Instance
- func (self Instance) GetHasTrackingData() bool
- func (self Instance) GetIsActive() bool
- func (self Instance) GetPose() [1]gdclass.XRPose
- func (self Instance) OnTrackingChanged(cb func(tracking bool))
- func (self Instance) Pose() string
- func (self Instance) SetPose(value string)
- func (self Instance) SetShowWhenTracked(value bool)
- func (self Instance) SetTracker(value string)
- func (self Instance) ShowWhenTracked() bool
- func (self Instance) Tracker() string
- func (self Instance) TriggerHapticPulse(action_name string, frequency Float.X, amplitude Float.X, duration_sec Float.X, ...)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
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 Instance ¶
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 (Instance) AsXRNode3D ¶
func (Instance) GetHasTrackingData ¶
Returns [code]true[/code] if the [member tracker] has current tracking data for the [member pose] being tracked.
func (Instance) GetIsActive ¶
Returns [code]true[/code] if the [member tracker] has been registered and the [member pose] is being tracked.
func (Instance) GetPose ¶
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 (Instance) SetShowWhenTracked ¶
func (Instance) SetTracker ¶
func (Instance) ShowWhenTracked ¶
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.