ARVRPositionalTracker

A tracked object.

An instance of this object represents a device that is tracked, such as a controller or anchor point. HMDs aren't represented here as they are handled internally. As controllers are turned on and the AR/VR interface detects them, instances of this object are automatically added to this list of active tracking objects accessible through the ARVRServer. The ARVRController and ARVRAnchor both consume objects of this type and should be used in your project. The positional trackers are just under-the-hood objects that make this all work. These are mostly exposed so that GDNative-based interfaces can interact with them.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
TrackerHand
enum TrackerHand

Functions

_setJoyId
void _setJoyId(long joy_id)
_setMesh
void _setMesh(Mesh mesh)
_setName
void _setName(String name)
_setOrientation
void _setOrientation(Basis orientation)
_setRwPosition
void _setRwPosition(Vector3 rw_position)
_setType
void _setType(long type)
getHand
ARVRPositionalTracker.TrackerHand getHand()

Returns the hand holding this tracker, if known. See trackerhand constants.

getJoyId
long getJoyId()

If this is a controller that is being tracked, the controller will also be represented by a joystick entry with this ID.

getMesh
Ref!Mesh getMesh()

Returns the mesh related to a controller or anchor point if one is available.

getName
String getName()

Returns the controller or anchor point's name if available.

getOrientation
Basis getOrientation()

Returns the controller's orientation matrix.

getPosition
Vector3 getPosition()

Returns the world-space controller position.

getRumble
double getRumble()
getTrackerId
long getTrackerId()

Returns the internal tracker ID. This uniquely identifies the tracker per tracker type and matches the ID you need to specify for nodes such as the ARVRController and ARVRAnchor nodes.

getTracksOrientation
bool getTracksOrientation()

Returns true if this device tracks orientation.

getTracksPosition
bool getTracksPosition()

Returns true if this device tracks position.

getTransform
Transform getTransform(bool adjust_by_reference_frame)

Returns the transform combining this device's orientation and position.

getType
ARVRServer.TrackerType getType()

Returns the tracker's type.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(ARVRPositionalTracker other)
opEquals
bool opEquals(typeof(null) n)
setRumble
void setRumble(double rumble)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

rumble
double rumble [@property getter]
double rumble [@property setter]

The degree to which the tracker rumbles. Ranges from 0.0 to 1.0 with precision .01.

Static functions

_new
ARVRPositionalTracker _new()

Construct a new instance of ARVRPositionalTracker. Note: use memnew!ARVRPositionalTracker instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta