Click or drag to resize

AStar2DSetPointWeightScale Method

Sets the weight_scale for the point with the given id. The weight_scale is multiplied by the result of _ComputeCost(Int32, Int32) when determining the overall cost of traveling across a segment from a neighboring point to this point.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetPointWeightScale(
	int id,
	float weightScale
)

Parameters

id
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.AStar2D.SetPointWeightScale(System.Int32,System.Single)"]

weightScale
Type: SystemSingle

[Missing <param name="weightScale"/> documentation for "M:Godot.AStar2D.SetPointWeightScale(System.Int32,System.Single)"]

See Also