# Get velocity for an "AND"

Im having trouble finding out how to add the velocity to and AND statement so that I can have an emitter play on a hit with a material only if the velocity is greater than x velocity. Heres a screen of what I have set up, the hit works but it does it constantly on impact. Im sure its an easy node I’m overlooking, but I haven’t been able to find anything… maybe I’m wording my searches wrong.

Just to clarify the objective is to have the emitter only trigger when the velocity of the ball is greater than or equal to lets say 30. I can’t figure out how t get these nodes functioning together. Thanks.

AND only is Boolean operation which returns True, only if all inputs are True. So you need condition node “grater then”. Since vector has 3 axis and whatever vector is grater depends on what axis you look on vector don’t have such a node, you need to code what you consider grater vector. You could use vector length, which is length between 0,0,0 to vector, the higher the number the higher velocity is in that direction so it’s accurate velocity speed. Vector length is float and float you can be easily compare using “Grater Then” nodes to get booleans

Outstanding! Thanks for the fast reply, i got it working perfectly. Heres an image of what I ended up doing so that others can use it for reference.

On the B value of the greater than or equal to node I had to pump up the values a bit, and will probably go up to 200-250 so that when the balls happen to roll into one another or a wall they don’t trigger the explosion.