Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
progress
The distance along the path, in pixels. Changing this value sets this node’s position to a point within the path.
PathFollow2D.swift:20final var progress: Double { get set }
Other members in extension
Type members
Instance members
var cubicInterp: Bool
If
true
, the position between two cached points is interpolated cubically, and linearly otherwise.var hOffset: Double
The node’s offset along the curve.
var loop: Bool
If
true
, any offset outside the path’s length will wrap around, instead of stopping at the ends. Use it for cyclic paths.var progressRatio: Double
The distance along the path as a number in the range 0.0 (for the first vertex) to 1.0 (for the last). This is just another way of expressing the progress within the path, as the offset supplied is multiplied internally by the path’s length.
var rotates: Bool
If
true
, this node rotates to follow the path, with the +X direction facing forward on the path.var vOffset: Double
The node’s offset perpendicular to the curve.