Restore weight scale for AStarGrid2D (partially)
This commit is contained in:
@ -72,6 +72,7 @@ private:
|
||||
|
||||
bool solid = false;
|
||||
Vector2 pos;
|
||||
real_t weight_scale = 1.0;
|
||||
|
||||
// Used for pathfinding.
|
||||
Point *prev_point = nullptr;
|
||||
@ -166,6 +167,9 @@ public:
|
||||
void set_point_solid(const Vector2i &p_id, bool p_solid = true);
|
||||
bool is_point_solid(const Vector2i &p_id) const;
|
||||
|
||||
void set_point_weight_scale(const Vector2i &p_id, real_t p_weight_scale);
|
||||
real_t get_point_weight_scale(const Vector2i &p_id) const;
|
||||
|
||||
void clear();
|
||||
|
||||
Vector<Vector2> get_point_path(const Vector2i &p_from, const Vector2i &p_to);
|
||||
|
||||
Reference in New Issue
Block a user