- Home /
How to detect if an object is being moved back and forth by the user?
I have a salt object in my game and I would like to play a particle effect only when the salt is moved up and down constantly (shaking) by the player. How can I check if the transform of the salt is being moved up and down by the player?
Dont worry about checking for input detection, I just need to know how to check the back and forth movement.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612093653im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how do i drag a clone object using gesture? 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
(C#) A better way to limit actions to once per button press? 2 Answers
Double tap mechanics and axis inputs 3 Answers