Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// @desc math_snap()
- /// @arg real_value
- /// @arg snap_value
- /*
- Takes a value and snaps it to a grid position.
- Divide, floor, and multiply to snap.
- */
- return floor(argument0 / argument1) * argument1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement