Click or drag to resize

Curve3DInterpolateBaked Method

Returns a point within the curve at position offset, where offset is measured as a distance in 3D units along the curve.

To do that, it finds the two cached points where the offset lies between, then interpolates the values. This interpolation is cubic if cubic is set to true, or linear if set to false.

Cubic interpolation tends to follow the curves better, but linear is faster (and often, precise enough).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector3 InterpolateBaked(
	float offset,
	bool cubic = false
)

Parameters

offset
Type: SystemSingle

[Missing <param name="offset"/> documentation for "M:Godot.Curve3D.InterpolateBaked(System.Single,System.Boolean)"]

cubic (Optional)
Type: SystemBoolean

[Missing <param name="cubic"/> documentation for "M:Godot.Curve3D.InterpolateBaked(System.Single,System.Boolean)"]

Return Value

Type: Vector3

[Missing <returns> documentation for "M:Godot.Curve3D.InterpolateBaked(System.Single,System.Boolean)"]

See Also