Documentation
¶
Overview ¶
Package XRTracker provides methods for working with XRTracker object instances.
Index ¶
- type Advanced
- type Any
- type Extension
- type ID
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsXRTracker() Instance
- func (self Instance) Description() string
- func (self Instance) ID() ID
- func (self Instance) Name() string
- func (self Instance) SetDescription(value string)
- func (self Instance) SetName(value string)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetType(value Type)
- func (self Instance) Type() Type
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type Type
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 Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsXRTracker ¶
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
This object is the base of all XR trackers.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsXRTracker ¶
func (Instance) Description ¶
func (Instance) SetDescription ¶
func (*Instance) UnsafePointer ¶
type Type ¶
type Type int //gd:XRServer.TrackerType
const ( /*The tracker tracks the location of the players head. This is usually a location centered between the players eyes. Note that for handheld AR devices this can be the current location of the device.*/ TrackerHead Type = 1 /*The tracker tracks the location of a controller.*/ TrackerController Type = 2 /*The tracker tracks the location of a base station.*/ TrackerBasestation Type = 4 /*The tracker tracks the location and size of an AR anchor.*/ TrackerAnchor Type = 8 /*The tracker tracks the location and joints of a hand.*/ TrackerHand Type = 16 /*The tracker tracks the location and joints of a body.*/ TrackerBody Type = 32 /*The tracker tracks the expressions of a face.*/ TrackerFace Type = 64 /*Used internally to filter trackers of any known type.*/ TrackerAnyKnown Type = 127 /*Used internally if we haven't set the tracker type yet.*/ TrackerUnknown Type = 128 /*Used internally to select all trackers.*/ TrackerAny Type = 255 )