- Home /
Object movement impacted by another
Hello guys,
I want to do an effect where an object is impacted by the movement of another object in 3D.
Here is an image to understand my problem :
The red circle is the object that is moving, the black rectangle is the object that needs to be impacted by the other.
For example, if my red circle move to the right or left, I want my black rectangle to be pushed a little on the opposite direction. Same if My red circle move forward or backward. And of course if my red circle isn't moving nothing is.
I tried to use Unity joint to produce this behaviour but I have not managed to do someting satisfying.
I feel like I have to do this by physics rather than with animation or manually, I just don't know how to handle my problem correctly.
Thanks in advance for your time.
Your answer
![](https://koobas.hobune.stream/wayback/20220612180736im_/https://answers.unity.com/themes/thub/images/avi.jpg)