Is it possible to make a block look like (in an extension):
(original:) ![]()
Basically, its 2 function parts in one block.
Is it possible to make a block look like (in an extension):
(original:) ![]()
Basically, its 2 function parts in one block.
Why would we want this?
to find out which is faster, e.g. x | 0 vs Math.floor(x) vs Math.trunc(x) vs the other 2 Math functions. It could be really useful for huge loops (e.g. raycasting).
Short answer: no (I tried before)
just create a project that runs math floor 1000 times every frame or less and then the same for math trunc math ceiling and math round
im thinking maybe have a
_function(a: () => void) { return a }
and just make the input an array, like
(original:) ![]()
would that work?
but I want an extension to make it easier for other users.
Nashe what is this jargon
Can’t pass functions as arguments in blocks mate
moderators please edit to: “make” not “nashe”