Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
a74895df
Unverified
Commit
a74895df
authored
Mar 04, 2020
by
Rémi Verschelde
Committed by
GitHub
Mar 04, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36596 from BastiaanOlij/add_get_tracker_id
Exposing get_tracker_id for ARVRPositionalTracker to GDScript
parents
c90ec71b
f0b1edef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
ARVRPositionalTracker.xml
doc/classes/ARVRPositionalTracker.xml
+7
-0
arvr_positional_tracker.cpp
servers/arvr/arvr_positional_tracker.cpp
+1
-0
No files found.
doc/classes/ARVRPositionalTracker.xml
View file @
a74895df
...
...
@@ -54,6 +54,13 @@
Returns the world-space controller position.
</description>
</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"
>
<return
type=
"bool"
>
</return>
...
...
servers/arvr/arvr_positional_tracker.cpp
View file @
a74895df
...
...
@@ -38,6 +38,7 @@ void ARVRPositionalTracker::_bind_methods() {
// 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_tracker_id"
),
&
ARVRPositionalTracker
::
get_tracker_id
);
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_tracks_orientation"
),
&
ARVRPositionalTracker
::
get_tracks_orientation
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment