1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Swap args of Plane(point, normal) constructor

Now (normal, point)
This commit is contained in:
mennomax
2021-04-08 16:26:14 +02:00
committed by Aaron Franke
parent 96410f55b2
commit b4eeeb315a
20 changed files with 88 additions and 77 deletions

View File

@@ -112,7 +112,7 @@ EditorPlugin::AfterGUIInput CollisionPolygon3DEditor::forward_spatial_gui_input(
Transform3D gi = gt.affine_inverse();
float depth = _get_depth() * 0.5;
Vector3 n = gt.basis.get_axis(2).normalized();
Plane p(gt.origin + n * depth, n);
Plane p(n, gt.origin + n * depth);
Ref<InputEventMouseButton> mb = p_event;