Quantise
Snaps a value onto a grid of whole steps, in its own units.
snap, step, round to, grid, course, align, increment- Category
- Values
- Outputs
- value
- Runs live in
- Godot, Roblox
Give a building a course height and every floor lands on a course, rather than wherever the division happened to leave it. Give a shelf a step and it sits at a whole number of steps up.
Nearest is what alignment usually wants. Down answers how many whole steps fit below this, which is a floor level. Up clears at least this much, which is a lintel over a door. Offset lets the grid start somewhere other than zero, so a course grid can begin at a plinth.
Inputs
| Socket | Type | Wiring |
|---|---|---|
| fieldValue | field, optional | |
| fieldStep | field, optional |
Parameters
| Name | Type | Default | Available when | What it does |
|---|---|---|---|---|
| inputValue | number | 0 | always | |
| Step | number | 1 | always | |
| Mode | nearest | down | up | nearest | always | |
| Offset | number | 0 | always |
Built with this node
Nothing in the manual is built around this node yet.