Empeld
Empeld plugin documentation.
|
Slightly difference from an AbstractRail, this doesn't keep track of interpolation, but just the list of ordered points to traverse More...
Public Member Functions | |
StepRail (IEnumerable< Vector3d > path) | |
StepRail (Path path, Vector3d offset) | |
StepRail (Path path) | |
bool | Advance () |
IEnumerator< Vector3d > | GetEnumerator () |
Static Public Member Functions | |
static StepRail | FromPathSmoothedXY (Path path, float centerWeight=1f) |
Properties | |
int | Index [get, set] |
Current (clamped) index More... | |
int | Length [get] |
Vector3d | Position [get] |
Vector3d | LookDirection [get] |
Slightly difference from an AbstractRail, this doesn't keep track of interpolation, but just the list of ordered points to traverse
essentials.action.Pathing.Rails.StepRail.StepRail | ( | IEnumerable< Vector3d > | path | ) |
essentials.action.Pathing.Rails.StepRail.StepRail | ( | Path | path, |
Vector3d | offset | ||
) |
essentials.action.Pathing.Rails.StepRail.StepRail | ( | Path | path | ) |
bool essentials.action.Pathing.Rails.StepRail.Advance | ( | ) |
|
static |
Attribute: path.Count
;
Attribute: 0] = path[0
+ CENTERXY;
Attribute: path.Count - 1] = path[path.Count - 1
+ CENTERXY;
Attribute: i
= (
Attribute: i
+ CENTERXY) * centerWeight
Attribute: i - 1
+ CENTERXY)
Attribute: i + 1
) + CENTERXY)
IEnumerator<Vector3d> essentials.action.Pathing.Rails.StepRail.GetEnumerator | ( | ) |
|
getset |
Current (clamped) index
The index.
|
get |
|
get |
|
get |