Question by
ClaudiaWee · Apr 17, 2017 at 09:21 AM ·
animationunity 5forcemagnetic
Repel force + Animation?
Hey guys!
I have a fish animation on loop, and I need an effect where, when my camera gets close to the fish, it repels the fish away but when the camera gets further from the fish, it goes back to its loop animation.
Can anyone help me with this? I'm extremely new to Unity and I don't have a programming background. I tried searching up the internet but I couldn't make sense of the magnetic tutorials. I have a repulsion script and it sort of works but I have no idea how to implement it into the animation.
Thanks in advance!
Comment