diff options
| author | Ferenc Arn | 2017-08-29 21:47:59 -0400 |
|---|---|---|
| committer | Ferenc Arn | 2017-08-29 21:47:59 -0400 |
| commit | a0bbf5c9afd0822d5f392c91fff37ecd4315647a (patch) | |
| tree | 50ff8abf4b5d639ae6437edc6b17dd702b788f17 /scene/3d/arvr_nodes.cpp | |
| parent | efcafab6255ea78365e519ca3a13e9bf8b2a81d4 (diff) | |
| download | godot-a0bbf5c9afd0822d5f392c91fff37ecd4315647a.tar.gz godot-a0bbf5c9afd0822d5f392c91fff37ecd4315647a.tar.zst godot-a0bbf5c9afd0822d5f392c91fff37ecd4315647a.zip | |
Remove Basis::set_scale and Basis::set_rotation_* functions.
Those functions were added in #8277 but they did more harm than good. They're subtle, don't do what people think and requires users to understand the non-uniqueness of polar decomposition. They ended up confusing people.
Until we store additional information enough to make a unique polar decomposition, these functions shouldn't be a part of Basis.
Diffstat (limited to '')
| -rw-r--r-- | scene/3d/arvr_nodes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/arvr_nodes.cpp b/scene/3d/arvr_nodes.cpp index 545be8bc5..caf313190 100644 --- a/scene/3d/arvr_nodes.cpp +++ b/scene/3d/arvr_nodes.cpp @@ -264,7 +264,7 @@ void ARVRAnchor::_notification(int p_what) { // our basis is scaled to the size of the plane the anchor is tracking // extract the size from our basis and reset the scale size = transform.basis.get_scale() * world_scale; - transform.basis.set_scale(Vector3(1.0, 1.0, 1.0)); + transform.basis.orthonormalize(); // apply our reference frame and set our transform set_transform(arvr_server->get_reference_frame() * transform); |
