#better way to detect if velocity is beyond a threshold

5 messages · Page 1 of 1 (latest)

novel edge
#

In my wand, I use something that determines if the sum of the wand’s velocity vector3 is above 3 or below -3. While this works, I know this occasionally leads to clashes (for example, if the x velocity was 5 and the y velocity was -3). I thought of another system that takes only the highest/lowest velocity and tests it, but I was wondering if there was a better way to do this

long swan
#

You could use a Vector3 Get Magnitude chip for this. If the magnitude is greater than a chosen threshold, then execute.

#

I was late RRwah

novel edge
#

I can do a bool with that right?