I’m trying to figure out how to calculate Time Between Attacks from Attack Speed so I can use it for a Debounce
An example would be
2.5 attacks per second would equal to 0.4 seconds for Time Between Attacks or you can call it a delay/ wait time
I’m trying to figure out how to calculate Time Between Attacks from Attack Speed so I can use it for a Debounce
An example would be
2.5 attacks per second would equal to 0.4 seconds for Time Between Attacks or you can call it a delay/ wait time
Time between attacks = 1 ÷ Attacks per second
1 ÷ 2.5 attacks per second = 0.4s in your example.
Thank you!
I feel bad for not knowing how to solve this simple math problem
Don’t man! It’s just something you haven’t learned yet
Attacks : Second
A : S
2.5 : 1
A : S
2.5 : 1
1 : 1 / 2.5
1 : 0.4
Sorry if you already knew this but was having a brain fart XD
Using ratios for this is not the best way, it would be better to represent time between attacks as a function of attacks per second i.e.
Let n = number of attacks per second, and let t = the time between each attack:
We can surmise that if you have n attacks per second, and t time between each attack, then t*n = 1 second.
We can then use what you said about operating on an equation. Because we’re trying to find t, we would divide both sides by n. t*n÷n = n, and 1÷n = 1/n, so t = 1/n