summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Roudiere <gilles.roudiere@gmail.com>2017-11-28 13:56:06 +0100
committerGitHub <noreply@github.com>2017-11-28 13:56:06 +0100
commit04145aade49ae09788f617ffb8df509455bbc87e (patch)
treea9fc75dcdb283b486e5bbfa93c4dd6c834284be1
parent95e7656a152f6158b50ff15f232097ff2175d170 (diff)
parentf00b60860c3a7ef21a280a2e0a3b85244fe468de (diff)
Merge pull request #13365 from BastiaanOlij/fix_arvr_set_transform
Set real world position, not virtual world position!
-rw-r--r--modules/gdnative/arvr/arvr_interface_gdnative.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/arvr/arvr_interface_gdnative.cpp b/modules/gdnative/arvr/arvr_interface_gdnative.cpp
index 02f2ee7424..9b0d1ebb31 100644
--- a/modules/gdnative/arvr/arvr_interface_gdnative.cpp
+++ b/modules/gdnative/arvr/arvr_interface_gdnative.cpp
@@ -344,7 +344,7 @@ void GDAPI godot_arvr_set_controller_transform(godot_int p_controller_id, godot_
tracker->set_orientation(transform->basis);
}
if (p_tracks_position) {
- tracker->set_position(transform->origin);
+ tracker->set_rw_position(transform->origin);
}
}
}