This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:movetowardsandavoid [2022/03/31 21:47] – [Description] Enhancement Vertu | 4rpl:commands:movetowardsandavoid [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Description ===== | ===== Description ===== | ||
Takes a starting 3D position (a 3-vector) and generates a new 3D position that is moved towards the target (also a 3-vector). The resulting point will not be displaced more than the delta argument. | Takes a starting 3D position (a 3-vector) and generates a new 3D position that is moved towards the target (also a 3-vector). The resulting point will not be displaced more than the delta argument. | ||
+ | * The delta is simply the speed (in cells) this unit moves per game frame. | ||
* The minHeight argument restricts how close, height wise, the resulting point can be to the terrain and/or creeper. | * The minHeight argument restricts how close, height wise, the resulting point can be to the terrain and/or creeper. | ||
* The checkRange argument is an integer that specifies how many cells outward to inspect when enforcing the minHeight. | * The checkRange argument is an integer that specifies how many cells outward to inspect when enforcing the minHeight. |