Remove Navigation2D/3D nodes, and move the navigation map to the world resource
This commit is contained in:
parent
469ac1e415
commit
a9dc53d152
39 changed files with 233 additions and 1012 deletions
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "core/templates/self_list.h"
|
||||
#include "core/templates/vset.h"
|
||||
#include "scene/2d/navigation_2d.h"
|
||||
#include "scene/2d/node_2d.h"
|
||||
#include "scene/resources/tile_set.h"
|
||||
|
||||
|
|
@ -78,7 +77,7 @@ private:
|
|||
bool use_parent = false;
|
||||
CollisionObject2D *collision_parent = nullptr;
|
||||
bool use_kinematic = false;
|
||||
Navigation2D *navigation = nullptr;
|
||||
bool bake_navigation = false;
|
||||
|
||||
union PosKey {
|
||||
struct {
|
||||
|
|
@ -295,6 +294,9 @@ public:
|
|||
void set_collision_bounce(float p_bounce);
|
||||
float get_collision_bounce() const;
|
||||
|
||||
void set_bake_navigation(bool p_bake_navigation);
|
||||
bool is_baking_navigation();
|
||||
|
||||
void set_mode(Mode p_mode);
|
||||
Mode get_mode() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue