mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Change to using doubles in XR classes
This commit is contained in:
parent
dc2b062609
commit
c527078634
9 changed files with 51 additions and 51 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue