ERR_FAIL_COND_MSG(dirty,"Grid is not initialized. Call the update method.");
ERR_FAIL_COND_MSG(!is_in_boundsv(p_id),vformat("Can't set point's weight scale. Point out of bounds (%s/%s, %s/%s).",p_id.x,size.width,p_id.y,size.height));
ERR_FAIL_COND_MSG(p_weight_scale<0.0,vformat("Can't set point's weight scale less than 0.0: %f.",p_weight_scale));
ERR_FAIL_COND_V_MSG(dirty,0,"Grid is not initialized. Call the update method.");
ERR_FAIL_COND_V_MSG(!is_in_boundsv(p_id),0,vformat("Can't get point's weight scale. Point out of bounds (%s/%s, %s/%s).",p_id.x,size.width,p_id.y,size.height));
Returns the weight scale of the point associated with the given [param id].
</description>
</method>
<methodname="is_dirty"qualifiers="const">
<returntype="bool"/>
<description>
@ -106,6 +113,15 @@
[b]Note:[/b] Calling [method update] is not needed after the call of this function.
</description>
</method>
<methodname="set_point_weight_scale">
<returntype="void"/>
<paramindex="0"name="id"type="Vector2i"/>
<paramindex="1"name="weight_scale"type="float"/>
<description>
Sets the [param weight_scale] for the point with the given [param id]. The [param weight_scale] is multiplied by the result of [method _compute_cost] when determining the overall cost of traveling across a segment from a neighboring point to this point.
[b]Note:[/b] Calling [method update] is not needed after the call of this function.
The offset of the grid which will be applied to calculate the resulting point position returned by [method get_point_path]. If changed, [method update] needs to be called before finding the next path.