Change to using doubles in XR classes

This commit is contained in:
Bastiaan Olij 2021-08-28 14:32:40 +10:00
parent dc2b062609
commit c527078634
9 changed files with 51 additions and 51 deletions

View file

@ -86,11 +86,11 @@ void XRServer::_bind_methods() {
ADD_SIGNAL(MethodInfo("tracker_removed", PropertyInfo(Variant::STRING_NAME, "tracker_name"), PropertyInfo(Variant::INT, "type"), PropertyInfo(Variant::INT, "id")));
};
real_t XRServer::get_world_scale() const {
double XRServer::get_world_scale() const {
return world_scale;
};
void XRServer::set_world_scale(real_t p_world_scale) {
void XRServer::set_world_scale(double p_world_scale) {
if (p_world_scale < 0.01) {
p_world_scale = 0.01;
} else if (p_world_scale > 1000.0) {