❔ how do you see if a number is passed through per frame
one frame a value may be 93 and a value may be 87 beforehand.
90 is therefore passed through. how do i check if any multiple of 90 including zero is passed through per frame?
35 Replies
Context?
hw
Save the previous value
can someone just give me a code example
Check if
prev / 90 < curr / 90
?so 87/90 < 93/90 ?
In this case, yes
does that work for prev = 87 and current = 89
$tias
no it doesnt
I mean, you said, and I quote..
how do i check if any multiple of 90 including zero is passed through per frame
maybe it works
i dont really understand the syntax
im used to basic c#
87 -> 93 => passes through 90
87 -> 89 => does not pass through 90
^
exactly
87/90<89/90
== true
Yeah
yet 87 and 89 doees not pass through 90
And
87/90<93/90
is false
Just invert the condition thenI mena
it sounds like you just want
prev < 90 && curr >= 90
Has to work for multiples including zero
yes basically
So
867 -> 921
too
So prev / 90 >= curr / 90
89/90 >= 91/90?
$tias
(the answer is no)
no its 0.99 and 1.01
amazing help
So which way do you want it?
When it's
true
it's not right
When it's false
it's not right
Do you want it to be maybe
?ARE YOU AN AI
REPORTED
We are all AI
uhm, no?
only if
prev
and curr
are floating point numbers
it would be 0 and 1 otherwiseI don't understand the question
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.