Jelajahi Sumber

Set real world position, not virtual world position!

Bastiaan Olij 7 tahun lalu
induk
melakukan
f00b60860c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      modules/gdnative/arvr/arvr_interface_gdnative.cpp

+ 1 - 1
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);
 			tracker->set_orientation(transform->basis);
 		}
 		}
 		if (p_tracks_position) {
 		if (p_tracks_position) {
-			tracker->set_position(transform->origin);
+			tracker->set_rw_position(transform->origin);
 		}
 		}
 	}
 	}
 }
 }