Difference between revisions of "Mods/vector extras"
Jump to navigation
Jump to search
Hybrid Dog (talk | contribs) m |
Hybrid Dog (talk | contribs) m |
||
Line 71: | Line 71: | ||
* each positions "touch" their next ones | * each positions "touch" their next ones | ||
| works | | works | ||
+ | |- | ||
+ | |<source enclose="none">vector.chunkcorner(pos)</source> | ||
+ | | [[vector]] | ||
+ | | should return the chunkcorner near pos | ||
+ | | could work | ||
|} | |} | ||
[[Category:Mod]] | [[Category:Mod]] |
Revision as of 11:29, 24 April 2014
Function | Return value | Comments | Status |
---|---|---|---|
vector.line([pos, dir[, range]])
|
table of vectors | dir can be following:
|
works |
vector.fine_line([pos, dir[, range], scale])
|
table of vectors |
|
works but slow |
vector.straightdelay([s, v[, a]])
|
number |
|
works |
vector.sun_dir(t)
|
vector |
|
works |
vector.inside(pos, minp, maxp)
|
bool | returns true if pos is inside or on the corners of minp and maxp | untested |
vector.minmax(p1, p2)
|
vector, vector | the first vector's x, y and z are smaller than the second one's | untested |
vector.move(p1, p2, s)
|
vector |
|
untested |
vector.explosion_table(r)
|
table |
|
works |
vector.circle(r)
|
table of vectors |
|
works |
vector.ring(r)
|
table of vectors |
|
works |
vector.chunkcorner(pos)
|
vector | should return the chunkcorner near pos | could work |