Click or drag to resize

AStar2D_ComputeCost Method

Called when computing the cost between two connected points.

Note that this function is hidden in the default AStar2D class.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public virtual float _ComputeCost(
	int fromId,
	int toId
)

Parameters

fromId
Type: SystemInt32

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

toId
Type: SystemInt32

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

Return Value

Type: Single

[Missing <returns> documentation for "M:Godot.AStar2D._ComputeCost(System.Int32,System.Int32)"]

See Also