allow for discrete snapping of drawn shapes

This commit is contained in:
gnembon committed 2020-07-19 11:19:49 -03:00
1 parent bd397ae772
commit ca0ddbb9e2
3 files changed
+21 -6

No files matched your search

+2 -1
View File
@@ -3405,7 +3405,8 @@ Optional shared shape attributes:
* `snap` - if `follow` is present, indicated on which axis the snapping to entity coordinates occurs, and which axis
will be treated statically, i.e. the coordinate passed in a coord triple is the actual value in the world. Default
value is `'xyz'`, meaning the shape will be drawn relatively to the entity in all three directions. Using `xz` for
instance makes so that the shape follows the entity, but stays at the same, absolute Y coordinate.
instance makes so that the shape follows the entity, but stays at the same, absolute Y coordinate. Preceeding an axis
with `d`, like `dxdydz` would make so that entity position is treated discretely (rounded down).
Available shapes:
* `'line'` - draws a straight line between two points.