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 fully 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 the objects you use in game. The positional trackers are just the under the hood objects that make this all work and are mostly exposed so 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)
_setName
void _setName(StringArg0 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 TRACKER_* 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.

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()
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
ARVRPositionalTracker opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(ARVRPositionalTracker other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setRumble
void setRumble(double rumble)

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()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
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
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
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