Exposing get_tracker_id for ARVRPositionalTracker to GDScript
This commit is contained in:
parent
aee36ec01b
commit
f0b1edef8b
|
@ -54,6 +54,13 @@
|
||||||
Returns the world-space controller position.
|
Returns the world-space controller position.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="get_tracker_id" qualifiers="const">
|
||||||
|
<return type="int">
|
||||||
|
</return>
|
||||||
|
<description>
|
||||||
|
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.
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="get_tracks_orientation" qualifiers="const">
|
<method name="get_tracks_orientation" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
|
|
|
@ -38,6 +38,7 @@ void ARVRPositionalTracker::_bind_methods() {
|
||||||
|
|
||||||
// this class is read only from GDScript, so we only have access to getters..
|
// this class is read only from GDScript, so we only have access to getters..
|
||||||
ClassDB::bind_method(D_METHOD("get_type"), &ARVRPositionalTracker::get_type);
|
ClassDB::bind_method(D_METHOD("get_type"), &ARVRPositionalTracker::get_type);
|
||||||
|
ClassDB::bind_method(D_METHOD("get_tracker_id"), &ARVRPositionalTracker::get_tracker_id);
|
||||||
ClassDB::bind_method(D_METHOD("get_name"), &ARVRPositionalTracker::get_name);
|
ClassDB::bind_method(D_METHOD("get_name"), &ARVRPositionalTracker::get_name);
|
||||||
ClassDB::bind_method(D_METHOD("get_joy_id"), &ARVRPositionalTracker::get_joy_id);
|
ClassDB::bind_method(D_METHOD("get_joy_id"), &ARVRPositionalTracker::get_joy_id);
|
||||||
ClassDB::bind_method(D_METHOD("get_tracks_orientation"), &ARVRPositionalTracker::get_tracks_orientation);
|
ClassDB::bind_method(D_METHOD("get_tracks_orientation"), &ARVRPositionalTracker::get_tracks_orientation);
|
||||||
|
|
Loading…
Reference in New Issue