mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Split Geometry singleton into Geometry2D and Geometry3D
Extra `_2d` suffixes are removed from 2D methods accoringly.
This commit is contained in:
parent
2709ddb163
commit
69d5de632e
70 changed files with 1503 additions and 1379 deletions
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include "core/input/input.h"
|
||||
#include "core/io/resource_loader.h"
|
||||
#include "core/math/delaunay_2d.h"
|
||||
#include "core/math/geometry_2d.h"
|
||||
#include "core/os/keyboard.h"
|
||||
#include "core/project_settings.h"
|
||||
#include "editor/editor_scale.h"
|
||||
|
|
@ -191,7 +191,7 @@ void AnimationNodeStateMachineEditor::_state_machine_gui_input(const Ref<InputEv
|
|||
transition_lines[i].from,
|
||||
transition_lines[i].to
|
||||
};
|
||||
Vector2 cpoint = Geometry::get_closest_point_to_segment_2d(mb->get_position(), s);
|
||||
Vector2 cpoint = Geometry2D::get_closest_point_to_segment(mb->get_position(), s);
|
||||
float d = cpoint.distance_to(mb->get_position());
|
||||
if (d > transition_lines[i].width) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue